powerpc/powernv: Add support to enable sensor groups
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Tue, 24 Jul 2018 09:13:08 +0000 (14:43 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jul 2018 09:56:45 +0000 (19:56 +1000)
commit04baaf28f40c68c35a413cd9d0db7139c67e6caf
tree462415565ac1c25c4282baa0d6744077e67ce008
parent1961acad2f88559c2cdd2ef67c58c3627f1f6e54
powerpc/powernv: Add support to enable sensor groups

Adds support to enable/disable a sensor group at runtime. This
can be used to select the sensor groups that needs to be copied to
main memory by OCC. Sensor groups like power, temperature, current,
voltage, frequency, utilization can be enabled/disabled at runtime.

Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal-api.h
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-sensor-groups.c
arch/powerpc/platforms/powernv/opal-wrappers.S