diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2017-08-10 09:01:19 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-08-10 22:40:01 +1000 |
commit | 8e84b2d1f0f6a00b6476790f7bce6dcbffe91980 (patch) | |
tree | f348d51b13bf87653605b18e9dbd6be21e518e29 /arch/powerpc/platforms/powernv/opal.c | |
parent | cb8b340de21e1c57e1c6d4f26ccc4af46a3ed559 (diff) |
powerpc/powernv: Add support to set power-shifting-ratio
This patch adds support to set power-shifting-ratio which hints the
firmware how to distribute/throttle power between different entities
in a system (e.g CPU v/s GPU). This ratio is used by OCC for power
capping algorithm.
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 28323c75e672..f659edbc5056 100644 --- a/arch/powerpc/platforms/powernv/opal.c +++ b/arch/powerpc/platforms/powernv/opal.c @@ -853,6 +853,9 @@ static int __init opal_init(void) /* Initialise OPAL powercap interface */ opal_powercap_init(); + /* Initialise OPAL Power-Shifting-Ratio interface */ + opal_psr_init(); + return 0; } machine_subsys_initcall(powernv, opal_init); |