Skip to content

Commit ac9f310

Browse files
committed
Merge branch 'powercap'
Merge Dynamic Thermal Power Management (DTPM) changes for 5.18-rc1: - Add DTPM hierarchy description (Daniel Lezcano). - Change the locking scheme in DTPM (Daniel Lezcano). - Fix dtpm_cpu cleanup at exit time and missing virtual DTPM pointer release (Daniel Lezcano). - Make dtpm_node_callback[] static (kernel test robot). - Fix spelling mistake "initialze" -> "initialize" in dtpm_create_hierarchy() (Colin Ian King). * powercap: powercap: DTPM: Fix spelling mistake "initialze" -> "initialize" powercap: DTPM: dtpm_node_callback[] can be static dtpm/soc/rk3399: Add the ability to unload the module powercap/dtpm_cpu: Add exit function powercap/dtpm: Move the 'root' reset place powercap/dtpm: Destroy hierarchy function powercap/dtpm: Fixup kfree for virtual node powercap/dtpm_cpu: Reset per_cpu variable in the release function powercap/dtpm: Change locking scheme rockchip/soc/drivers: Add DTPM description for rk3399 powercap/drivers/dtpm: Add dtpm devfreq with energy model support powercap/drivers/dtpm: Add CPU DT initialization support powercap/drivers/dtpm: Add hierarchy creation powercap/drivers/dtpm: Convert the init table section to a simple array
2 parents dfad78e + 55ddcd9 commit ac9f310

11 files changed

Lines changed: 634 additions & 109 deletions

File tree

drivers/powercap/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ config IDLE_INJECT
4646

4747
config DTPM
4848
bool "Power capping for Dynamic Thermal Power Management (EXPERIMENTAL)"
49+
depends on OF
4950
help
5051
This enables support for the power capping for the dynamic
5152
thermal power management userspace engine.
@@ -56,4 +57,11 @@ config DTPM_CPU
5657
help
5758
This enables support for CPU power limitation based on
5859
energy model.
60+
61+
config DTPM_DEVFREQ
62+
bool "Add device power capping based on the energy model"
63+
depends on DTPM && ENERGY_MODEL
64+
help
65+
This enables support for device power limitation based on
66+
energy model.
5967
endif

drivers/powercap/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
obj-$(CONFIG_DTPM) += dtpm.o
33
obj-$(CONFIG_DTPM_CPU) += dtpm_cpu.o
4+
obj-$(CONFIG_DTPM_DEVFREQ) += dtpm_devfreq.o
45
obj-$(CONFIG_POWERCAP) += powercap_sys.o
56
obj-$(CONFIG_INTEL_RAPL_CORE) += intel_rapl_common.o
67
obj-$(CONFIG_INTEL_RAPL) += intel_rapl_msr.o

0 commit comments

Comments
 (0)