ARM: brcmstb: update CPU power management sequence
authorBrian Norris <computersforpeace@gmail.com>
Wed, 17 Dec 2014 03:13:50 +0000 (19:13 -0800)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 12 Jan 2015 22:59:29 +0000 (14:59 -0800)
commita1ad3b94a7661b643fef2efbc6fc217bd148f462
treea4521ca95d0be701ab8ee4c92d5e0bcbaa0e1414
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
ARM: brcmstb: update CPU power management sequence

The automatic CPU power state machine for B15 CPUs does not work
reliably as-is. This patch implements a manual sequence in software to
replace it.

This was tested successfully with over 10,000 hotplug cycles of
something like this:

  echo 0 > /sys/devices/system/cpu/cpu1/online
  echo 1 > /sys/devices/system/cpu/cpu1/online

whereas the existing sequence often locks up after a few hundred cycles.

Fixes: 62639c2f5332 ("ARM: brcmstb: reintroduce SMP support")
Acked-by: Gregory Fong <gregory.0xf0@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/mach-bcm/platsmp-brcmstb.c