hwmon: (coretemp) Skip duplicate CPU entries
commit696f12076eb2d2217e67dcae62c8a436b4ec524b
authorJean Delvare <khali@linux-fr.org>
Fri, 9 Jul 2010 14:22:49 +0000 (9 16:22 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:20:43 +0000 (2 10:20 -0700)
tree5f0f7dc3319b9646d8126dc5a19bda57490cdfaa
parenta4a3b1fb8a7e81648884840c3aabe38458202618
hwmon: (coretemp) Skip duplicate CPU entries

commit d883b9f0977269d519469da72faec6a7f72cb489 upstream.

On hyper-threaded CPUs, each core appears twice in the CPU list. Skip
the second entry to avoid duplicate sensors.

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