From: Liviu Dudau Date: Tue, 26 Mar 2013 11:02:51 +0000 (+0000) Subject: arm64: psci: Use the MPIDR values from cpu_logical_map for cpu ids. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9a193ffe51d036a7c2d30d7fbdb66498c688237;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git arm64: psci: Use the MPIDR values from cpu_logical_map for cpu ids. With the (re)introduction of cpu_logical_map in arm64 we switch to the use of MPIDR values to identify CPUs. Update the psci code to do that. Signed-off-by: Liviu Dudau Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/kernel/smp_psci.c b/arch/arm64/kernel/smp_psci.c index 112091684c22..0c533301be77 100644 --- a/arch/arm64/kernel/smp_psci.c +++ b/arch/arm64/kernel/smp_psci.c @@ -21,6 +21,7 @@ #include #include +#include static int __init smp_psci_init_cpu(struct device_node *dn, int cpu) { @@ -36,7 +37,7 @@ static int __init smp_psci_prepare_cpu(int cpu) return -ENODEV; } - err = psci_ops.cpu_on(cpu, __pa(secondary_holding_pen)); + err = psci_ops.cpu_on(cpu_logical_map(cpu), __pa(secondary_holding_pen)); if (err) { pr_err("psci: failed to boot CPU%d (%d)\n", cpu, err); return err; @@ -47,6 +48,6 @@ static int __init smp_psci_prepare_cpu(int cpu) const struct smp_enable_ops smp_psci_ops __initconst = { .name = "psci", - .init_cpu = smp_psci_init_cpu, + .init_cpu = smp_psci_init_cpu, .prepare_cpu = smp_psci_prepare_cpu, };