Re: [PATCH 08/21] drivers: base: Implement weak arch_unregister_cpu()
Gavin Shan <[email protected]> Fri, 1 Dec 2023 14:47:11 +1100
| Newsgroups | gmane.linux.acpi.devel,gmane.linux.power-management.general,gmane.linux.kernel.cross-arch,gmane.linux.kernel,gmane.linux.ports.arm.kernel,gmane.linux.ports.riscv,gmane.linux.documentation,gmane.linux.ports.ia64,gmane.linux.ports.parisc |
|---|---|
| Message-ID | <[email protected]> |
On 11/22/23 00:44, Russell King (Oracle) wrote: > From: James Morse <[email protected]> > > Add arch_unregister_cpu() to allow the ACPI machinery to call > unregister_cpu(). This is enough for arm64, riscv and loongarch, but > needs to be overridden by x86 and ia64 who need to do more work. > > CC: Jean-Philippe Brucker <[email protected]> > Signed-off-by: James Morse <[email protected]> > Reviewed-by: Shaoqin Huang <[email protected]> > Signed-off-by: Russell King (Oracle) <[email protected]> > --- > An open question remains from the RFC v2 posting: should we provide a > __weak stub for !HOTPLUG_CPU as well, since in later patches ACPI may > reference this if the compiler doesn't optimise as we expect? > > Changes since v1: > * Added CONFIG_HOTPLUG_CPU ifdeffery around unregister_cpu > Changes since RFC v2: > * Move earlier in the series > --- > drivers/base/cpu.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > Reviewed-by: Gavin Shan <[email protected]>