Skip to content

Commit 7bff4c2

Browse files
committed
Merge branch 'powercap'
* powercap: powercap/drivers/dtpm: Add the experimental label to the option description powercap/drivers/dtpm: Fix root node initialization
2 parents 44cc89f + 9e2be30 commit 7bff4c2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

drivers/powercap/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ config IDLE_INJECT
4545
on a per CPU basis.
4646

4747
config DTPM
48-
bool "Power capping for Dynamic Thermal Power Management"
48+
bool "Power capping for Dynamic Thermal Power Management (EXPERIMENTAL)"
4949
help
5050
This enables support for the power capping for the dynamic
5151
thermal power management userspace engine.

drivers/powercap/dtpm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ int dtpm_release_zone(struct powercap_zone *pcz)
207207
if (dtpm->ops)
208208
dtpm->ops->release(dtpm);
209209

210+
if (root == dtpm)
211+
root = NULL;
212+
210213
kfree(dtpm);
211214

212215
return 0;

0 commit comments

Comments
 (0)