]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/numa: improve control of topology updates
authorNathan Lynch <nathanl@linux.ibm.com>
Thu, 18 Apr 2019 18:56:57 +0000 (13:56 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Apr 2019 12:03:57 +0000 (22:03 +1000)
commit181dd702d8d6bed2a2e5242ae7ca4f2059c44d45
treeedf44b1690bfcf30ea0284ca38fe35862e9afb84
parent9189049f9de0573a2091c6b87bda62e5ec3f2b0a
powerpc/numa: improve control of topology updates

When booted with "topology_updates=no", or when "off" is written to
/proc/powerpc/topology_updates, NUMA reassignments are inhibited for
PRRN and VPHN events. However, migration and suspend unconditionally
re-enable reassignments via start_topology_update(). This is
incoherent.

Check the topology_updates_enabled flag in
start/stop_topology_update() so that callers of those APIs need not be
aware of whether reassignments are enabled. This allows the
administrative decision on reassignments to remain in force across
migrations and suspensions.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/numa.c