From: Daniel Lezcano Date: Fri, 26 Nov 2021 23:08:20 +0000 (+0100) Subject: powercap/drivers/dtpm: Disable DTPM at boot time X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f751db8adaea;p=linux.git powercap/drivers/dtpm: Disable DTPM at boot time 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: 7a89d7eacf8e ("powercap/drivers/dtpm: Simplify the dtpm table") Signed-off-by: Daniel Lezcano Reported-By: Doug Smythies Tested-By: Doug Smythies Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/powercap/dtpm.c b/drivers/powercap/dtpm.c index b9fac786246ab..fb35c5828bfb5 100644 --- a/drivers/powercap/dtpm.c +++ b/drivers/powercap/dtpm.c @@ -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);