]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (fam15h_power) Increase output resolution
authorAndre Przywara <andre.przywara@amd.com>
Fri, 23 Mar 2012 09:02:17 +0000 (10:02 +0100)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 18 Jun 2012 08:17:05 +0000 (12:17 +0400)
commit0c1a7214c06683463f3b15e7f739ac15663cfbcb
tree22839fd7331baef2d8830f4246f434d57475c3bc
parentfb61be7b953df812299545b00d9440bab9e39589
hwmon: (fam15h_power) Increase output resolution

On high CPU load the accumulating values in the running_avg_cap
register are very low (below 10), so averaging them too early leads
to unnecessary poor output resolution. Since we pretend to output
micro-Watt we better keep all the bits we have as long as possible.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Conflicts:

drivers/hwmon/fam15h_power.c
drivers/hwmon/fam15h_power.c