Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only
0002 #
0003 # Generic power capping sysfs interface configuration
0004 #
0005 
0006 menuconfig POWERCAP
0007         bool "Generic powercap sysfs driver"
0008         help
0009           The power capping sysfs interface allows kernel subsystems to expose power
0010           capping settings to user space in a consistent way.  Usually, it consists
0011           of multiple control types that determine which settings may be exposed and
0012           power zones representing parts of the system that can be subject to power
0013           capping.
0014 
0015           If you want this code to be compiled in, say Y here.
0016 
0017 if POWERCAP
0018 # Client driver configurations go here.
0019 config INTEL_RAPL_CORE
0020         tristate
0021 
0022 config INTEL_RAPL
0023         tristate "Intel RAPL Support via MSR Interface"
0024         depends on X86 && IOSF_MBI
0025         select INTEL_RAPL_CORE
0026         help
0027           This enables support for the Intel Running Average Power Limit (RAPL)
0028           technology via MSR interface, which allows power limits to be enforced
0029           and monitored on modern Intel processors (Sandy Bridge and later).
0030 
0031           In RAPL, the platform level settings are divided into domains for
0032           fine grained control. These domains include processor package, DRAM
0033           controller, CPU core (Power Plane 0), graphics uncore (Power Plane
0034           1), etc.
0035 
0036 config IDLE_INJECT
0037         bool "Idle injection framework"
0038         depends on CPU_IDLE
0039         default n
0040         help
0041           This enables support for the idle injection framework. It
0042           provides a way to force idle periods on a set of specified
0043           CPUs for power capping. Idle period can be injected
0044           synchronously on a set of specified CPUs or alternatively
0045           on a per CPU basis.
0046 
0047 config DTPM
0048         bool "Power capping for Dynamic Thermal Power Management (EXPERIMENTAL)"
0049         depends on OF
0050         help
0051           This enables support for the power capping for the dynamic
0052           thermal power management userspace engine.
0053 
0054 config DTPM_CPU
0055         bool "Add CPU power capping based on the energy model"
0056         depends on DTPM && ENERGY_MODEL
0057         help
0058           This enables support for CPU power limitation based on
0059           energy model.
0060 
0061 config DTPM_DEVFREQ
0062         bool "Add device power capping based on the energy model"
0063         depends on DTPM && ENERGY_MODEL
0064         help
0065           This enables support for device power limitation based on
0066           energy model.
0067 endif