]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ibmpowernv) pretty print labels
authorCédric Le Goater <clg@fr.ibm.com>
Wed, 8 Apr 2015 17:19:50 +0000 (19:19 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 8 Apr 2015 17:34:20 +0000 (10:34 -0700)
commit1e4c367f315740f2258e085159c6dcf8da40fc27
tree8e49b6332b95a8fa5847185ff39e855fc2b25382
parentcad708cf386cc8043da7c4a9e0a4a9eee2fc7908
hwmon: (ibmpowernv) pretty print labels

The new OPAL device tree adds a few properties which can be used to add
extra information on the sensor label.

In the case of a cpu core sensor, the firmware exposes the physical
identifier of the core in the "ibm,pir" property. The driver
translates this identifier in a linux cpu number and prints out a
range corresponding to the hardware threads of the core (as they
share the same sensor).

The numbering gives a hint on the localization of the core in the
system (which socket, which chip).

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ibmpowernv.c