]> 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)
commite5469cf2bdc43c183d18791d8763a03aafbf87a1
tree0be72e061d8a7d6e992248cfbb249333f518a1ad
parent60c83513f505964e5a5d402b76c24679ed2e894e
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