]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf68c70e65a52c081b7d65840e6a2f3807da632d0
treeaab7459b56b53ea2aaec22900aeb687454f5ccfa
parent9f5ffcfb09522537a8e065a553fe2b6ebd7bd8f1
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