Skip to content
Permalink
Browse files
riscv: cpu-hotplug: clear cpu from numa map when teardown
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: 4f0e8ee ("riscv: Add numa support for riscv64 platform")
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
  • Loading branch information
liupingfan authored and Palmer Dabbelt committed Feb 9, 2022
1 parent f81393a commit c3c94752087e789419be7024116c0a7b22883541
Showing 1 changed file with 1 addition and 0 deletions.
@@ -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();

0 comments on commit c3c9475

Please sign in to comment.