hwmon: (coretemp) Properly label the sensors
authorJean Delvare <khali@linux-fr.org>
Fri, 9 Jul 2010 14:22:51 +0000 (16:22 +0200)
committerJean Delvare <khali@linux-fr.org>
Fri, 9 Jul 2010 14:22:51 +0000 (16:22 +0200)
commit3f4f09b4be35d38d6e2bf22c989443e65e70fc4c
tree3c40801ab0f08191232bf8ac465bbafe317dc42c
parentd883b9f0977269d519469da72faec6a7f72cb489
hwmon: (coretemp) Properly label the sensors

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>
Cc: stable@kernel.org
drivers/hwmon/coretemp.c