]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (coretemp) Add comments describing the handling of HT CPUs
authorGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 23 May 2011 21:05:38 +0000 (14:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 May 2011 04:11:14 +0000 (21:11 -0700)
commit1bb9879776a1c6d4924ba31e3ef0ed884e496dea
tree0cf83331612b1e721b9663a71bfd5f364c49992f
parentde1541dd229c63806bdd3c2112b706e6a5f5285f
hwmon: (coretemp) Add comments describing the handling of HT CPUs

The coretemp driver provides a single set of device attributes for each
physical core of a HT CPU to avoid duplicate sensors.  This
functionality was introduced with commit 15464a114ecd ("hwmon:
(coretemp) Skip duplicate CPU entries").

Commit f68c70e65a52 ("x86/hwmon: register alternate sibling upon CPU
removal") extends this functionality to register the HT sibling of a CPU
which is taken offline, to ensure that sensor attributes are provided if
at least one HT sibling of a core is online.

Add comments into the code describing the functionality in some more
detail.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/coretemp.c