Skip to content

Commit

Permalink
Merge branch 'powercap'
Browse files Browse the repository at this point in the history
* powercap:
  powercap/drivers/dtpm: Add the experimental label to the option description
  powercap/drivers/dtpm: Fix root node initialization
  • Loading branch information
rafaeljw committed Mar 5, 2021
2 parents 44cc89f + 9e2be30 commit 7bff4c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/powercap/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ config IDLE_INJECT
on a per CPU basis.

config DTPM
bool "Power capping for Dynamic Thermal Power Management"
bool "Power capping for Dynamic Thermal Power Management (EXPERIMENTAL)"
help
This enables support for the power capping for the dynamic
thermal power management userspace engine.
Expand Down
3 changes: 3 additions & 0 deletions drivers/powercap/dtpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ int dtpm_release_zone(struct powercap_zone *pcz)
if (dtpm->ops)
dtpm->ops->release(dtpm);

if (root == dtpm)
root = NULL;

kfree(dtpm);

return 0;
Expand Down

0 comments on commit 7bff4c2

Please sign in to comment.