On 3/11/2026 1:53 AM, Bjorn Helgaas wrote: > On Tue, Mar 10, 2026 at 11:20:48AM +0800, Chengwen Feng wrote: >> To unify the CPU ACPI ID retrieval interface across architectures, >> rename the existing get_acpi_id_for_cpu() function to >> acpi_get_cpu_acpi_id() on arm64/riscv/loongarch platforms. >> >> This is a pure rename with no functional change, preparing for a >> consistent ACPI Processor UID retrieval interface across all ACPI-enabled >> platforms. > > Really a question for the ACPI folks, but my preferences would be: > > - Simpler name for the interface, e.g., "acpi_get_cpu_id()"
OK, and how about add u-, like: acpi_get_cpu_uid() > > - Single prototype in generic header, e.g., include/linux/acpi.h OK > > - Split the x86 part to a separate patch and maybe (a tangent, but > looks dubious to me) figure out whether/why xen needs xen_vcpu_id > to be ACPI CPU IDs OK for a separate patch for x86. Btw: the x86 implementation in 2/2 commit may has problem, please see the reply in 2/2 for detail. > >> Cc: [email protected] >> Signed-off-by: Chengwen Feng <[email protected]> >> Reviewed-by: Jonathan Cameron <[email protected]> >> --- >> arch/arm64/include/asm/acpi.h | 4 ++-- >> arch/loongarch/include/asm/acpi.h | 2 +- >> arch/riscv/include/asm/acpi.h | 2 +- >> arch/riscv/kernel/acpi_numa.c | 2 +- >> drivers/acpi/pptt.c | 16 ++++++++-------- >> drivers/acpi/riscv/rhct.c | 2 +- >> drivers/perf/arm_cspmu/arm_cspmu.c | 2 +- >> 7 files changed, 15 insertions(+), 15 deletions(-) >
