summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/opal-api.h
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2017-08-10 09:01:19 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-10 22:40:01 +1000
commit8e84b2d1f0f6a00b6476790f7bce6dcbffe91980 (patch)
treef348d51b13bf87653605b18e9dbd6be21e518e29 /arch/powerpc/include/asm/opal-api.h
parentcb8b340de21e1c57e1c6d4f26ccc4af46a3ed559 (diff)
downloadlinux-8e84b2d1f0f6a00b6476790f7bce6dcbffe91980.tar.bz2
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/include/asm/opal-api.h')
-rw-r--r--arch/powerpc/include/asm/opal-api.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/opal-api.h b/arch/powerpc/include/asm/opal-api.h
index b87305b22746..0cb7d110c0b4 100644
--- a/arch/powerpc/include/asm/opal-api.h
+++ b/arch/powerpc/include/asm/opal-api.h
@@ -196,6 +196,8 @@
#define OPAL_IMC_COUNTERS_STOP 151
#define OPAL_GET_POWERCAP 152
#define OPAL_SET_POWERCAP 153
+#define OPAL_GET_POWER_SHIFT_RATIO 154
+#define OPAL_SET_POWER_SHIFT_RATIO 155
#define OPAL_PCI_SET_P2P 157
#define OPAL_LAST 157