]> err.no Git - linux-2.6/commit
[CPUFREQ] Fix limited cpufreq when booted on battery
authorThomas Renninger <trenn@suse.de>
Thu, 19 Apr 2007 13:48:34 +0000 (15:48 +0200)
committerDave Jones <davej@redhat.com>
Thu, 26 Apr 2007 18:32:02 +0000 (14:32 -0400)
commit22c970f3468a6766b362d57fa32ebb92cb8cd6db
tree09e666c2c1f1ac93a2a6deec703d667cdc41b250
parente8e49190f64896afe79f7136a67c2bdefbd3e322
[CPUFREQ] Fix limited cpufreq when booted on battery

References:
https://bugzilla.novell.com/show_bug.cgi?id=231107
https://bugzilla.novell.com/show_bug.cgi?id=264077

Fix limited cpufreq when booted on battery

If booted on battery:
cpufreq_set_policy (evil) is invoked which calls verify_within_limits.
max_freq gets lowered and therefore users_policy.max, which
is used to restore higher freqs via update_policy later is set to the
already limited frequency -> you can never go up again, even BIOS
allows higher freqs later.

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq.c