Skip to content

Commit

Permalink
powercap/drivers/dtpm: Disable DTPM at boot time
Browse files Browse the repository at this point in the history
The DTPM framework misses a mechanism to set it up. That is currently
under review but will come after the next cycle.

As the distro are enabling all the kernel options, the DTPM framework
is enabled on platforms where the energy model is not implemented,
thus making the framework inconsistent and disrupting the CPU
frequency scaling service.

Remove the initialization at boot time as a hot fix.

Fixes: 7a89d7e ("powercap/drivers/dtpm: Simplify the dtpm table")
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reported-By: Doug Smythies <dsmythies@telus.net>
Tested-By: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Daniel Lezcano authored and Rafael J. Wysocki committed Dec 1, 2021
1 parent d58071a commit f751db8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/powercap/dtpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,6 @@ static int __init init_dtpm(void)
return PTR_ERR(pct);
}

for_each_dtpm_table(dtpm_descr)
dtpm_descr->init();

return 0;
}
late_initcall(init_dtpm);

0 comments on commit f751db8

Please sign in to comment.