]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: vexpress/dcscb: do not hardcode number of CPUs per cluster
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 18 Jul 2012 20:41:16 +0000 (16:41 -0400)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 29 May 2013 19:50:35 +0000 (15:50 -0400)
commit2f2df895ee3518fbef28dfa6736dfd1e1c04ee1c
treecca1f6645e733c760da0837e71d323a68be2111e
parent13eae144ec754ab64521891d2cffc3156f6f083f
ARM: vexpress/dcscb: do not hardcode number of CPUs per cluster

If 4 CPUs are assumed, the A15x1-A7x1 model configuration would never
shut down the initial cluster as the 0xf reset bit mask will never be
observed.  Let's construct this mask based on the provided information
in the DCSCB config register for the number of CPUs per cluster.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Pawel Moll <pawel.moll@arm.com>
arch/arm/mach-vexpress/dcscb.c