]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: numa: separate out updates to percpu nodeid and NUMA node cpumap
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 6 Jul 2018 11:02:43 +0000 (12:02 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 6 Jul 2018 12:18:18 +0000 (13:18 +0100)
commit38b890a8f19f545592bca1e9418a0e478bfcfb50
treead49f122917cd995f8d32788be8bd2f36e1d8d2c
parentf06572a48890b1a68e7122adeadf4d9a18a180dc
arm64: numa: separate out updates to percpu nodeid and NUMA node cpumap

Currently numa_clear_node removes both cpu information from the NUMA
node cpumap as well as the NUMA node id from the cpu. Similarly
numa_store_cpu_info updates both percpu nodeid and NUMA cpumap.

However we need to retain the numa node id for the cpu and only remove
the cpu information from the numa node cpumap during CPU hotplug out.
The same can be extended for hotplugging in the CPU.

This patch separates out numa_{add,remove}_cpu from numa_clear_node and
numa_store_cpu_info.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Reviewed-by: Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
Tested-by: Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/numa.h
arch/arm64/kernel/smp.c
arch/arm64/mm/numa.c