]> www.infradead.org Git - users/dwmw2/linux.git/commit
arm64: acpi: Move get_cpu_for_acpi_id() to a header
authorJames Morse <james.morse@arm.com>
Wed, 29 May 2024 13:34:38 +0000 (14:34 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 28 Jun 2024 17:38:29 +0000 (18:38 +0100)
commit8d34b6f17b9ac93faa2791eb037dcb08bdf755de
tree470b794859b7d268049d90ffe239524a8477c8c8
parent3b9d0a78aeda194994892f7c42f6ca5feb45eadd
arm64: acpi: Move get_cpu_for_acpi_id() to a header

ACPI identifies CPUs by UID. get_cpu_for_acpi_id() maps the ACPI UID
to the Linux CPU number.

The helper to retrieve this mapping is only available in arm64's NUMA
code.

Move it to live next to get_acpi_id_for_cpu().

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Tested-by: Miguel Luis <miguel.luis@oracle.com>
Tested-by: Vishnu Pajjuri <vishnu@os.amperecomputing.com>
Tested-by: Jianyong Wu <jianyong.wu@arm.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Acked-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Link: https://lore.kernel.org/r/20240529133446.28446-12-Jonathan.Cameron@huawei.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/acpi.h
arch/arm64/kernel/acpi_numa.c