forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/powercap/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # Generic power capping sysfs interface configuration
34 #
....@@ -15,18 +16,21 @@
1516
1617 if POWERCAP
1718 # Client driver configurations go here.
19
+config INTEL_RAPL_CORE
20
+ tristate
21
+
1822 config INTEL_RAPL
19
- tristate "Intel RAPL Support"
23
+ tristate "Intel RAPL Support via MSR Interface"
2024 depends on X86 && IOSF_MBI
21
- default n
22
- ---help---
25
+ select INTEL_RAPL_CORE
26
+ help
2327 This enables support for the Intel Running Average Power Limit (RAPL)
24
- technology which allows power limits to be enforced and monitored on
25
- modern Intel processors (Sandy Bridge and later).
28
+ technology via MSR interface, which allows power limits to be enforced
29
+ and monitored on modern Intel processors (Sandy Bridge and later).
2630
2731 In RAPL, the platform level settings are divided into domains for
2832 fine grained control. These domains include processor package, DRAM
29
- controller, CPU core (Power Plance 0), graphics uncore (Power Plane
33
+ controller, CPU core (Power Plane 0), graphics uncore (Power Plane
3034 1), etc.
3135
3236 config IDLE_INJECT
....@@ -39,4 +43,17 @@
3943 CPUs for power capping. Idle period can be injected
4044 synchronously on a set of specified CPUs or alternatively
4145 on a per CPU basis.
46
+
47
+config DTPM
48
+ bool "Power capping for Dynamic Thermal Power Management (EXPERIMENTAL)"
49
+ help
50
+ This enables support for the power capping for the dynamic
51
+ thermal power management userspace engine.
52
+
53
+config DTPM_CPU
54
+ bool "Add CPU power capping based on the energy model"
55
+ depends on DTPM && ENERGY_MODEL
56
+ help
57
+ This enables support for CPU power limitation based on
58
+ energy model.
4259 endif