]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (coretemp) Properly label the sensors
authorJean Delvare <khali@linux-fr.org>
Fri, 9 Jul 2010 14:22:51 +0000 (16:22 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:26:27 +0000 (10:26 -0700)
commit0164d158656ab6610eb42cdcbc538f2b143f2c58
treeb838a64b843914f4a4e33fe95d7cbf6a1a292e46
parenta4efa00c1d20c019cb3a40fe4a674d90a4ddccb5
hwmon: (coretemp) Properly label the sensors

commit 3f4f09b4be35d38d6e2bf22c989443e65e70fc4c upstream.

Don't assume that CPU entry number and core ID always match. It
worked in the simple cases (single CPU, no HT) but fails on
multi-CPU systems.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Huaxu Wan <huaxu.wan@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/coretemp.c