summaryrefslogtreecommitdiff
path: root/arch/powerpc/mm/numa.c
diff options
context:
space:
mode:
authorNathan Lynch <nathanl@linux.ibm.com>2020-06-12 08:12:27 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-16 06:12:36 +0300
commit6325cb4a4ea8f4af8515b923650dd8f709694b44 (patch)
treefdae65b83773e40ce20cf615a23f6f518b965ae8 /arch/powerpc/mm/numa.c
parent50e0cf3742a01e72f4ea4a8fe9221b152e22871b (diff)
downloadlinux-6325cb4a4ea8f4af8515b923650dd8f709694b44.tar.xz
powerpc/numa: remove unreachable topology workqueue code
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 <nathanl@linux.ibm.com> Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200612051238.1007764-8-nathanl@linux.ibm.com
Diffstat (limited to 'arch/powerpc/mm/numa.c')
-rw-r--r--arch/powerpc/mm/numa.c14
1 files changed, 0 insertions, 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;
}