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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Feb 2022 11:56:18 +0000 (12:56 +0100)
commitefe220337181dabf0b6b852cb7f6d01c5313468e
treecbd60186ab1a6738220a5877e9cbd711faf181ec
parent7486227fa47aa84b102be18fd9985f6e8e11e756
riscv: cpu-hotplug: clear cpu from numa map when teardown

commit f40fe31c01445f31253b15bef2412b33ae31093b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/riscv/kernel/cpu-hotplug.c