]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (coretemp) Skip duplicate CPU entries
authorJean Delvare <khali@linux-fr.org>
Fri, 9 Jul 2010 14:22:49 +0000 (16:22 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:29:23 +0000 (10:29 -0700)
commitc32f9cf32602dc3f737ad263057f29250c6be45b
treed3f38427184eecccc8fef51089758907317c22e1
parent1044e560c5d07dd6bf0eccef8ba7238992831045
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