]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (fam15h_power) Tweak runavg_range on resume
authorAndreas Herrmann <andreas.herrmann3@amd.com>
Sun, 23 Sep 2012 18:27:32 +0000 (20:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:39:13 +0000 (10:39 -0700)
commitb0c2ca340080d3f918cc69c8cc7516ccd85f2799
treedf07eeb282523a9a8e041493af24343ef421ca60
parent3c362fb1c80ded1b396d9f2fabfdbe6632ec9120
hwmon: (fam15h_power) Tweak runavg_range on resume

commit 5f0ecb907deb1e6f28071ee3bd568903b9da1be4 upstream.

The quirk introduced with commit
00250ec90963b7ef6678438888f3244985ecde14 (hwmon: fam15h_power: fix
bogus values with current BIOSes) is not only required during driver
load but also when system resumes from suspend. The BIOS might set the
previously recommended (but unsuitable) initilization value for the
running average range register during resume.

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Tested-by: Andreas Hartmann <andihartmann@01019freenet.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/fam15h_power.c