OSDN Git Service

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)
commitf40fe31c01445f31253b15bef2412b33ae31093b
tree5fd1ee53e7faa6c488d8f3c9ecf1e2d995cf23c4
parentf81393a5b252df772b934cde81b7e16273afbd43
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: 4f0e8eef772e ("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