]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: vexpress: extend the MPIDR range used for pen release check
authorLorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>
Tue, 22 Jan 2013 10:56:40 +0000 (10:56 +0000)
committerPawel Moll <pawel.moll@arm.com>
Thu, 24 Jan 2013 12:19:23 +0000 (12:19 +0000)
In ARM multi-cluster systems the MPIDR affinity level 0 cannot be used as a
single cpu identifier, affinity levels 1 and 2 must be taken into account as
well.
This patch extends the MPIDR usage to affinity levels 1 and 2 in versatile
secondary cores start up code in order to compare the passed pen_release
value with the full-blown affinity mask.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
arch/arm/plat-versatile/headsmp.S

index dd703ef09b8d9d623d83e4a131c12e87e329e838..b178d44e9eaa897c8f8a3a4bb017198cb7014cae 100644 (file)
@@ -20,7 +20,7 @@
  */
 ENTRY(versatile_secondary_startup)
        mrc     p15, 0, r0, c0, c0, 5
-       and     r0, r0, #15
+       bic     r0, #0xff000000
        adr     r4, 1f
        ldmia   r4, {r5, r6}
        sub     r4, r4, r5