ARM: vexpress/dcscb: add CPU use counts to the power up/down API implementation
authorNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 17 Jul 2012 02:07:10 +0000 (22:07 -0400)
committerJon Medhurst <tixy@linaro.org>
Mon, 1 Jul 2013 10:05:06 +0000 (11:05 +0100)
commit29722e1e61a723f2c6e35e33fdcbdf9555db5a02
tree429f5e0973bed4a928b33ee569692772c493884e
parentbd2bf7cdad1fac1918a7fa9e576ebe1a0c7605ca
ARM: vexpress/dcscb: add CPU use counts to the power up/down API implementation

It is possible for a CPU to be told to power up before it managed
to power itself down.  Solve this race with a usage count to deal
with this possibility as mandated by the MCPM API definition.

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