powerpc/powernv: Add support for powercap framework
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Thu, 10 Aug 2017 03:31:18 +0000 (09:01 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 12:39:53 +0000 (22:39 +1000)
commitcb8b340de21e1c57e1c6d4f26ccc4af46a3ed559
tree8f6e572060c3a724d4a6add5f558bf0417d05177
parenta70a0b9f4404d8edb72ca0e0272731dc75bd00fb
powerpc/powernv: Add support for powercap framework

Adds a generic powercap framework to change the system powercap
inband through OPAL-OCC command/response interface.

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-powercap [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-powercap.c [new file with mode: 0644]
arch/powerpc/platforms/powernv/opal-wrappers.S
arch/powerpc/platforms/powernv/opal.c