Re: [PATCH RFC 06/22] drivers: base: Use present CPUs in GENERIC_CPU_DEVICES

2023-11-12 Thread Gavin Shan
On 11/7/23 20: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 show up in sysf

Re: [PATCH RFC 06/22] drivers: base: Use present CPUs in GENERIC_CPU_DEVICES

2023-11-09 Thread Shaoqin Huang
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, where

Re: [PATCH RFC 06/22] drivers: base: Use present CPUs in GENERIC_CPU_DEVICES

2023-11-09 Thread Russell King (Oracle)
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, whereas arm64, riscv and all > > GENE

Re: [PATCH RFC 06/22] drivers: base: Use present CPUs in GENERIC_CPU_DEVICES

2023-11-09 Thread Shaoqin Huang
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

[PATCH RFC 06/22] drivers: base: Use present CPUs in GENERIC_CPU_DEVICES

2023-11-07 Thread Oracle
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 show up in sysfs. It makes very little sense to register all po