]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (fam15h_power) Increase output resolution
authorAndre Przywara <andre.przywara@amd.com>
Sun, 25 Mar 2012 23:42:14 +0000 (10:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 25 Mar 2012 23:42:14 +0000 (10:42 +1100)
commitaaa284facb3acfbd73727868a79cd3879754845b
tree35d118d214a7c4d57ef1f8b085cafc9725255b75
parent2cf324fa7729d22c8ef64ace113caf6f045f5ae1
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>
drivers/hwmon/fam15h_power.c