• Olof Johansson's avatar
    [POWERPC] pasemi: Don't enter powersaving states from elevated astates · 8b32bc03
    Olof Johansson authored
    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: default avatarOlof Johansson <olof@lixom.net>
    8b32bc03
powersave.S 1.81 KB