aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm90.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@amd.com>2012-04-09 18:16:34 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-07 08:56:33 -0700
commit7d841e23feb06283577bd593ecd18113829a837c (patch)
tree43bdcaad68ed69f404bd2f4a004fe5032e45481c /drivers/hwmon/lm90.c
parent17a766decb63b6fe4c43c06069b92b4958d7a642 (diff)
downloadkernel_samsung_smdk4412-7d841e23feb06283577bd593ecd18113829a837c.zip
kernel_samsung_smdk4412-7d841e23feb06283577bd593ecd18113829a837c.tar.gz
kernel_samsung_smdk4412-7d841e23feb06283577bd593ecd18113829a837c.tar.bz2
hwmon: fam15h_power: fix bogus values with current BIOSes
commit 00250ec90963b7ef6678438888f3244985ecde14 upstream. Newer BKDG[1] versions recommend a different initialization value for the running average range register in the northbridge. This improves the power reading by avoiding counter saturations resulting in bogus values for anything below about 80% of TDP power consumption. Updated BIOSes will have this new value set up from the beginning, but meanwhile we correct this value ourselves. This needs to be done on all northbridges, even on those where the driver itself does not register at. This fixes the driver on all current machines to provide proper values for idle load. [1] http://support.amd.com/us/Processor_TechDocs/42301_15h_Mod_00h-0Fh_BKDG.pdf Chapter 3.8: D18F5xE0 Processor TDP Running Average (p. 452) Signed-off-by: Andre Przywara <andre.przywara@amd.com> Acked-by: Jean Delvare <khali@linux-fr.org> [guenter.roeck@ericsson.com: Removed unnecessary return statement] Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwmon/lm90.c')
0 files changed, 0 insertions, 0 deletions