]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: acpi: Add acpi_get_cpu_uid() for unified ACPI CPU UID retrieval
authorChengwen Feng <fengchengwen@huawei.com>
Wed, 1 Apr 2026 08:16:33 +0000 (16:16 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 6 Apr 2026 14:55:15 +0000 (16:55 +0200)
commit7cd5f5659ac8e49811ef03cbfe8b4a2069abaa27
tree206372f445c1529a88657815a4942214657e3a75
parent591cd656a1bf5ea94a222af5ef2ee76df029c1d2
arm64: 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
arm64. While at it, add input validation to make the code more robust.

Reimplement get_cpu_for_acpi_id() based on acpi_get_cpu_uid() for
consistency, and move its implementation next to the new function for
code coherence.

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://patch.msgid.link/20260401081640.26875-2-fengchengwen@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/arm64/include/asm/acpi.h
arch/arm64/kernel/acpi.c