]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/acpi: Add acpi_get_cpu_uid() for unified ACPI CPU UID retrieval
authorChengwen Feng <fengchengwen@huawei.com>
Wed, 1 Apr 2026 08:16:36 +0000 (16:16 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 6 Apr 2026 14:55:15 +0000 (16:55 +0200)
commit3cfe889f8965ded727f3de38ee941b44978e1d9b
tree09830af7ab7c4e2ddb687feb6530d8e4a14f567d
parent0c8231994e43f445597166e8b342459079244d25
x86/acpi: Add acpi_get_cpu_uid() for unified ACPI CPU UID retrieval

As a step towards unifying the interface for retrieving ACPI CPU UID
across architectures, introduce a new function acpi_get_cpu_uid() for
x86. While at it, add input validation to make the code more robust.

Update Xen-related code to use acpi_get_cpu_uid() instead of the legacy
cpu_acpi_id() function, and remove the now-unused cpu_acpi_id() to clean
up redundant code.

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://patch.msgid.link/20260401081640.26875-5-fengchengwen@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/include/asm/acpi.h
arch/x86/include/asm/cpu.h
arch/x86/include/asm/smp.h
arch/x86/kernel/acpi/boot.c
arch/x86/xen/enlighten_hvm.c