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)
committerJon Medhurst <tixy@linaro.org>
Mon, 1 Jul 2013 10:05:07 +0000 (11:05 +0100)
commitc621f114fd5fc19dfa54d3c03d504768b4a47de2
treedfa1937333cfd8680de7f54ee4fe602463f17c79
parent29722e1e61a723f2c6e35e33fdcbdf9555db5a02
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