]> git.karo-electronics.de Git - karo-tx-linux.git/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>
Mon, 29 Aug 2011 16:32:55 +0000 (12:32 -0400)
commitdb3060df1ddbf7b54dcd5378aadacdd95854100c
tree987348920449279f5dba6324ba35cc6ced5396d7
parent2837bddb5d00fe2ea8a70320e27c29f6d6521499
[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