diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2013-07-03 19:15:20 +0800 |
---|---|---|
committer | Graeme Gregory <graeme.gregory@linaro.org> | 2013-09-25 14:01:18 +0100 |
commit | 73c1c061aab043fd1f5f32ab0f3a66c9e42bbdf9 (patch) | |
tree | 9ddd93cf7b0e063a5cc923bced5f8e9cc3ab6fde /arch/arm64 | |
parent | 836083de9e93e6dd62fe3c3736429efda14d3d97 (diff) |
ARM64 / ACPI: Get logic cpu id to see if the cpu is a new added cpu
Since enabled cpus were allocated logic cpu id to them and mapped to the
APIC id when boot, we can get the cpu id in the ACPI driver, the cpu is
a new added cpu if cpu id is -1, then we can hot-add it later.
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/include/asm/acpi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/acpi.h b/arch/arm64/include/asm/acpi.h index c40148b77e6c..3d37c0ea02e7 100644 --- a/arch/arm64/include/asm/acpi.h +++ b/arch/arm64/include/asm/acpi.h @@ -82,6 +82,7 @@ extern int acpi_strict; */ extern volatile int arm_cpu_to_apicid[NR_CPUS]; extern int boot_cpu_apic_id; +#define cpu_physical_id(cpu) arm_cpu_to_apicid[cpu] struct acpi_arm_root { phys_addr_t phys_address; |