]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/numa: stub out numa_update_cpu_topology()
authorNathan Lynch <nathanl@linux.ibm.com>
Fri, 12 Jun 2020 05:12:29 +0000 (00:12 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2020 03:12:37 +0000 (13:12 +1000)
commitf642cdb497d0ee20631060520bb5980507bf30bd
tree8744f446264a8834ee844b1c4be407613a015061
parent2670e7a433dbbe1dca4edf1be620e8a2055d6396
powerpc/numa: stub out numa_update_cpu_topology()

Previous changes have removed the code which sets bits in
cpu_associativity_changes_mask and thus it is never modifed at
runtime. From this we can reason that numa_update_cpu_topology()
always returns 0 without doing anything. Remove the body of
numa_update_cpu_topology() and remove all 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-10-nathanl@linux.ibm.com
arch/powerpc/mm/numa.c