Skip to content

Commit

Permalink
riscv: cpu-hotplug: clear cpu from numa map when teardown
Browse files Browse the repository at this point in the history
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 c3c9475
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/riscv/kernel/cpu-hotplug.c
Expand Up @@ -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();

Expand Down

0 comments on commit c3c9475

Please sign in to comment.