diff options
author | Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> | 2010-10-06 04:37:09 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-11-28 23:48:19 -0500 |
commit | 5742bd859524793b857110a13db349d95070d2dc (patch) | |
tree | 600b1b0bf9d6edc0bf210ea7a9cffe5f60517eb3 /arch/powerpc/platforms/pseries/Kconfig | |
parent | 99d86705253dcf728dbbec4d694a6764b6edb70c (diff) |
powerpc: Add support for new hcall H_BEST_ENERGY
Create sysfs interface to export data from H_BEST_ENERGY hcall
that can be used by administrative tools on supported pseries
platforms for energy management optimizations.
sys/device/system/cpu/pseries_(de)activate_hint_list and
sys/device/system/cpu/cpuN/pseries_(de)activate_hint will provide
hints for activation and deactivation of cpus respectively.
These hints are abstract number given by the hypervisor based
on the extended knowledge the hypervisor has regarding the
system topology and resource mappings.
The activate and the deactivate sysfs entry is for the two
distinct operations that we could do for energy savings. When
we have more capacity than required, we could deactivate few
core to save energy. The choice of the core to deactivate
will be based on /sys/devices/system/cpu/deactivate_hint_list.
The comma separated list of cpus (cores) will be the preferred
choice. If we have to activate some of the deactivated cores,
then /sys/devices/system/cpu/activate_hint_list will be used.
The per-cpu file
/sys/device/system/cpu/cpuN/pseries_(de)activate_hint further
provide more fine grain information by exporting the value of
the hint itself.
Added new driver module
arch/powerpc/platforms/pseries/pseries_energy.c
under new config option CONFIG_PSERIES_ENERGY
Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/Kconfig')
-rw-r--r-- | arch/powerpc/platforms/pseries/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig index 3139814f6439..5d1b743dbe7e 100644 --- a/arch/powerpc/platforms/pseries/Kconfig +++ b/arch/powerpc/platforms/pseries/Kconfig | |||
@@ -33,6 +33,16 @@ config PSERIES_MSI | |||
33 | depends on PCI_MSI && EEH | 33 | depends on PCI_MSI && EEH |
34 | default y | 34 | default y |
35 | 35 | ||
36 | config PSERIES_ENERGY | ||
37 | tristate "pSeries energy management capabilities driver" | ||
38 | depends on PPC_PSERIES | ||
39 | default y | ||
40 | help | ||
41 | Provides interface to platform energy management capabilities | ||
42 | on supported PSERIES platforms. | ||
43 | Provides: /sys/devices/system/cpu/pseries_(de)activation_hint_list | ||
44 | and /sys/devices/system/cpu/cpuN/pseries_(de)activation_hint | ||
45 | |||
36 | config SCANLOG | 46 | config SCANLOG |
37 | tristate "Scanlog dump interface" | 47 | tristate "Scanlog dump interface" |
38 | depends on RTAS_PROC && PPC_PSERIES | 48 | depends on RTAS_PROC && PPC_PSERIES |