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 16:47:26 +0000 (09:47 -0700)
commitfe7e822c7b55d55cf2b1367d5a01d4ac254bb2f2
tree643d4b3f8a99032a1fc351565516b6f2a6f1194e
parentd83fc0bb961f8b4775b30bcee27fe9721da8400c
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