x86/hwmon: register alternate sibling upon CPU removal
authorJan Beulich <jbeulich@novell.com>
Mon, 13 Sep 2010 10:23:05 +0000 (10:23 +0000)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 24 Sep 2010 18:44:19 +0000 (11:44 -0700)
commite40cc4bdfd4b89813f072f72bd9c7055814d3f0f
treeaab7459b56b53ea2aaec22900aeb687454f5ccfa
parentf6aeccdb96fc0555e939dd507702922f07dcbcbb
x86/hwmon: register alternate sibling upon CPU removal

Just like pkgtemp registers another core of the same package when one
gets removed, coretemp should register another hyperthread (if
available) in that situation.

As pointed out in the patch fixing the respective code in pkgtemp, the
list protectng mutex must be dropped before calling
coretemp_device_add(), and due to the restructured loop (including an
explicit return) the "safe" variant of the list iterator isn't needed
anymore.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Rudolf Marek <r.marek@assembler.cz>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/coretemp.c