Thread (32 messages) flat view 32 messages, 3 authors, 2020-07-16
STALE2234d LANDED

Landed in mainline as 6325cb4a4ea8 on 2020-07-16.

[PATCH 07/18] powerpc/numa: remove unreachable topology workqueue code

From: Nathan Lynch <hidden>
Date: 2020-06-12 05:27:02
Subsystem: linux for powerpc (32-bit and 64-bit), the rest · Maintainers: Madhavan Srinivasan, Linus Torvalds

Since vphn_enabled is always 0, we can remove the call to
topology_schedule_update() and remove the code which becomes
unreachable as a result.

Signed-off-by: Nathan Lynch <redacted>
---
 arch/powerpc/mm/numa.c | 14 --------------
 1 file changed, 14 deletions(-)
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index 6207297490a8..8415481a7f13 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -1414,17 +1414,6 @@ int arch_update_cpu_topology(void)
 	return numa_update_cpu_topology(true);
 }
 
-static void topology_work_fn(struct work_struct *work)
-{
-	rebuild_sched_domains();
-}
-static DECLARE_WORK(topology_work, topology_work_fn);
-
-static void topology_schedule_update(void)
-{
-	schedule_work(&topology_work);
-}
-
 /*
  * Start polling for associativity changes.
  */
@@ -1450,9 +1439,6 @@ static int topology_update_init(void)
 {
 	start_topology_update();
 
-	if (vphn_enabled)
-		topology_schedule_update();
-
 	topology_inited = 1;
 	return 0;
 }
-- 
2.25.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help