]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
hwmon: (k8temp) Fix wrong sensor selection for AMD K8 RevF/RevG CPUs
authorAndreas Herrmann <andreas.herrmann3@amd.com>
Thu, 15 Jan 2009 21:27:47 +0000 (22:27 +0100)
committerJean Delvare <khali@linux-fr.org>
Thu, 15 Jan 2009 21:27:47 +0000 (22:27 +0100)
commita2e066bba2aad6583e3ff648bf28339d6c9f0898
tree64b84783acc67aa3c20d0587b79efe6e618bbd73
parentbb9a35f293a3c8b5d57253cdfe2f29fa2627e1b9
hwmon: (k8temp) Fix wrong sensor selection for AMD K8 RevF/RevG CPUs

Meaning of ThermSenseCoreSel bit was inverted beginning with K8 RevF.
That means with current driver temp1/temp2 belong to core 1 and
temp3/temp4 belong to core 0 on a K8 RevF/RevG CPU.

This patch ensures that temp1/temp2 always belong to core 0 and
temp3/temp4 to core 1 for all K8 revisions.

Cc: Rudolf Marek <r.marek@assembler.cz>
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/k8temp.c