]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ibmpowernv) Add attributes to enable/disable sensor groups
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Tue, 24 Jul 2018 09:13:09 +0000 (14:43 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jul 2018 09:56:45 +0000 (19:56 +1000)
commit1280295e09f153750c458b396e73813daddbaeb1
tree0be72e061d8a7d6e992248cfbb249333f518a1ad
parent87722393ddfdfa560c0a20e30478ec482fa7ebad
hwmon: (ibmpowernv) Add attributes to enable/disable sensor groups

OPAL firmware provides the facility for some groups of sensors to be
enabled/disabled at runtime to give the user the option of using the
system resources for collecting these sensors or not.

For example, on POWER9 systems, the On Chip Controller (OCC) gathers
various system and chip level sensors and maintains their values in
main memory.

This patch provides support for enabling/disabling the sensor groups
like power, temperature, current and voltage.

Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
[stewart@linux.vnet.ibm.com: Commit message]
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Documentation/hwmon/ibmpowernv
drivers/hwmon/ibmpowernv.c