ting it on the other three ACPI architectures. This allows the weak
definitions of some symbols to be removed.
Signed-off-by: James Morse
Signed-off-by: Russell King (Oracle)
Reviewed-by: Shaoqin Huang
---
Changes since RFC:
* Expanded conditions to avoid ACPI_HOTPLUG_CPU being enabled when
Hi Russell,
On 11/7/23 18:29, Russell King (Oracle) wrote:
From: James Morse
Three of the five ACPI architectures create sysfs entries using
register_cpu() for present CPUs, whereas arm64, riscv and all
GENERIC_CPU_DEVICES do this for possible CPUs.
Registering a CPU is what causes them to sh
into arch_register_cpu(), which is made __weak
so architectures with extra work can override it.
This aligns with the way x86, ia64 and loongarch register hotplug CPUs
when they become present.
Signed-off-by: James Morse
Signed-off-by: Russell King (Oracle)
Reviewed-by: Shaoqin Huang
---
Changes
Signed-off-by: James Morse
Reviewed-by: Shaoqin Huang
---
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(-)
diff --git a
On 11/9/23 18:29, Russell King (Oracle) wrote:
On Thu, Nov 09, 2023 at 06:09:32PM +0800, Shaoqin Huang wrote:
Hi Russell,
On 11/7/23 18:29, Russell King (Oracle) wrote:
From: James Morse
Three of the five ACPI architectures create sysfs entries using
register_cpu() for present CPUs
provide this detail instead.
Signed-off-by: Russell King (Oracle)
Reviewed-by: Shaoqin Huang
---
drivers/base/cpu.c | 11 ++-
include/linux/cpu.h | 1 +
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index 58bb86091b34
Reviewed-by: Russell King (Oracle)
Signed-off-by: Russell King (Oracle)
Reviewed-by: Shaoqin Huang
---
drivers/base/cpu.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index 221ffbeb1c9b..82b6a76125f5 100644
--- a/drivers/base
On 11/7/23 18:30, Russell King (Oracle) wrote:
Convert arm64 to use the arch_cpu_is_hotpluggable() helper rather than
arch_register_cpu().
Signed-off-by: Russell King (Oracle)
Reviewed-by: Shaoqin Huang
---
arch/arm64/kernel/setup.c | 8 ++--
1 file changed, 2 insertions(+), 6
This patch also has the effect of moving the registration of CPUs from
subsys to driver core initialisation, prior to any initcalls running.
Signed-off-by: James Morse
Reviewed-by: Russell King (Oracle)
Signed-off-by: Russell King (Oracle)
Reviewed-by: Shaoqin Huang
---
Changes since RFC v2: