]> err.no Git - linux-2.6/commit
[POWERPC] pasemi: Don't enter powersaving states from elevated astates
authorOlof Johansson <olof@lixom.net>
Wed, 7 Nov 2007 15:26:06 +0000 (09:26 -0600)
committerOlof Johansson <olof@lixom.net>
Sat, 1 Dec 2007 19:03:40 +0000 (13:03 -0600)
commit8b32bc03256c82a6a4fcb3c2520b54469b74ec82
treedead882774db1a0f6069e6962f85e0c0117eadbb
parent0d08a84770cb03aea24268e515342d44df8ea588
[POWERPC] pasemi: Don't enter powersaving states from elevated astates

When the PWRficient cpus are entered into powersavings states, the
astate is automatically dropped down to 0. While we still restore it
when we come out of idle, it can still cause some weird effects with
respect to performance (especially since it takes a while to ramp up to
higher astates).

So, to avoid this, don't enter power savings when the cpufreq driver
(or user) has set higher astates than 0.

The restore is still required, since there's a chance the astate has
been raised from the other cpu while the idling one was asleep.

Signed-off-by: Olof Johansson <olof@lixom.net>
arch/powerpc/platforms/pasemi/cpufreq.c
arch/powerpc/platforms/pasemi/pasemi.h
arch/powerpc/platforms/pasemi/powersave.S