diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2017-08-10 06:31:20 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-08-10 15:40:05 +0300 |
commit | bf9571550f529335caa59f41827d180908759916 (patch) | |
tree | e0ba5e029acb708776245f1de59310720e6345d0 /arch/powerpc/platforms/powernv/opal.c | |
parent | 8e84b2d1f0f6a00b6476790f7bce6dcbffe91980 (diff) | |
download | linux-bf9571550f529335caa59f41827d180908759916.tar.xz |
powerpc/powernv: Add support to clear sensor groups data
Adds support for clearing different sensor groups. OCC inband sensor
groups like CSM, Profiler, Job Scheduler can be cleared using this
driver. The min/max of all sensors belonging to these sensor groups
will be cleared.
Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal.c')
-rw-r--r-- | arch/powerpc/platforms/powernv/opal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c index f659edbc5056..3c122d08b6c3 100644 --- a/arch/powerpc/platforms/powernv/opal.c +++ b/arch/powerpc/platforms/powernv/opal.c @@ -856,6 +856,9 @@ static int __init opal_init(void) /* Initialise OPAL Power-Shifting-Ratio interface */ opal_psr_init(); + /* Initialise OPAL sensor groups */ + opal_sensor_groups_init(); + return 0; } machine_subsys_initcall(powernv, opal_init); |