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)
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>

No differences found