]> 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:20:43 +0000 (10:20 -0700)
commita4a3b1fb8a7e81648884840c3aabe38458202618
tree15ded2a39e5045d6389a31a5512fad49f91134d5
parent16b6eed5b12f3a4b695975568e30b9bc7c2c0cb6
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