]> Pileus Git - ~andy/linux/commit
[CPUFREQ] e_powersaver: Additional checks
authorRafał Bilski <rafalbilski@interia.pl>
Wed, 20 Jul 2011 20:20:56 +0000 (21:20 +0100)
committerDave Jones <davej@redhat.com>
Wed, 26 Oct 2011 21:19:46 +0000 (17:19 -0400)
commited361bf08033f165e0a004f254919e13f07df0ae
tree6241c9d1f047aeeb460e80f22d2f6d1b1c49e54a
parent5beae3b9b6f5479998310a849f73aa32a637dd3b
[CPUFREQ] e_powersaver: Additional checks

Some systems are using 1,2Ghz@844mV processors running at 600MHz@796mV.
Try to detect such systems and don't touch anything on it. If CPU doesn't have
P-States in BIOS it should run at maximum frequency.
Allow user to bypass checks by means of two new options.
Don't set frequency to maximum on module unloading to avoid bada boom.
It is also possible that some processors may have incorrect values in min/max
registers caused by error in manufacturing process. Probably it would be BIOS
job to set them to right frequency and P-States tables would have correct
values inside.
Two additional sanity checks for voltage.

Signed-off-by: Rafał Bilski <rafalbilski@interia.pl>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/e_powersaver.c