aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPingfan Liu <kernelfans@gmail.com>2022-01-23 20:13:52 +0800
committerPalmer Dabbelt <palmer@rivosinc.com>2022-02-08 17:07:29 -0800
commitc3c94752087e789419be7024116c0a7b22883541 (patch)
tree1460cc61b98e326a554533eca5ad5f96b981e8c4
parentf81393a5b252df772b934cde81b7e16273afbd43 (diff)
downloadlinux-next-c3c94752087e789419be7024116c0a7b22883541.tar.gz
riscv: cpu-hotplug: clear cpu from numa map when teardown
Notice: this object is not reachable from any branch.
There is numa_add_cpu() when cpus online, accordingly, there should be numa_remove_cpu() when cpus offline. Signed-off-by: Pingfan Liu <kernelfans@gmail.com> Fixes: 4f0e8eef772e ("riscv: Add numa support for riscv64 platform") Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Notice: this object is not reachable from any branch.
-rw-r--r--arch/riscv/kernel/cpu-hotplug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/kernel/cpu-hotplug.c b/arch/riscv/kernel/cpu-hotplug.c
index be7f05b542bbd..78d156a359ef0 100644
--- a/arch/riscv/kernel/cpu-hotplug.c
+++ b/arch/riscv/kernel/cpu-hotplug.c
@@ -40,6 +40,7 @@ int __cpu_disable(void)
return ret;
remove_cpu_topology(cpu);
+ numa_remove_cpu(cpu);
set_cpu_online(cpu, false);
irq_migrate_all_off_this_cpu();