]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Add support to set power-shifting-ratio
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Thu, 10 Aug 2017 03:31:19 +0000 (09:01 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 12:40:01 +0000 (22:40 +1000)
commit42312fd828db28e8a824cd75429ce8a50a470ebd
treef348d51b13bf87653605b18e9dbd6be21e518e29
parent06308f16767d7e5f138c2d592b674b1d26eed4df
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>
Documentation/ABI/testing/sysfs-firmware-opal-psr [new file with mode: 0644]
arch/powerpc/include/asm/opal-api.h
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/Makefile
arch/powerpc/platforms/powernv/opal-psr.c [new file with mode: 0644]
arch/powerpc/platforms/powernv/opal-wrappers.S
arch/powerpc/platforms/powernv/opal.c