]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: cpu-hotplug: clear cpu from numa map when teardown
authorPingfan Liu <kernelfans@gmail.com>
Sun, 23 Jan 2022 12:13:52 +0000 (20:13 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 10 Feb 2022 17:16:50 +0000 (09:16 -0800)
commitad1a4f78a57123c4d0392f05df1da124ffa4e575
tree5fd1ee53e7faa6c488d8f3c9ecf1e2d995cf23c4
parentea8e9b29c7e87f966ca512ba9a3d0704c76c465f
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: 6acc2c7ec784 ("riscv: Add numa support for riscv64 platform")
Cc: stable@vger.kernel.org
[Palmer: Add missing NUMA include]
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/cpu-hotplug.c