]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
powerpc/numa: remove unreachable topology workqueue code
authorNathan Lynch <nathanl@linux.ibm.com>
Fri, 12 Jun 2020 05:12:27 +0000 (00:12 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2020 03:12:36 +0000 (13:12 +1000)
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
arch/powerpc/mm/numa.c

index 6207297490a8111259e1460bf6b230962306f778..8415481a7f13756a6e77861430d093236ccc38cc 100644 (file)
@@ -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;
 }