aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/bug.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2025-04-15 09:58:08 +0000
committerRafael J. Wysocki <[email protected]>2025-04-17 15:54:43 +0000
commitcfde542df7dd51d26cf667f4af497878ddffd85a (patch)
treebcd2620859184e00e4b66efb448ffe590fd14dea /rust/helpers/bug.c
parentcpufreq: intel_pstate: Fix hwp_get_cpu_scaling() (diff)
downloadkernel-cfde542df7dd51d26cf667f4af497878ddffd85a.tar.gz
kernel-cfde542df7dd51d26cf667f4af497878ddffd85a.zip
cpufreq/sched: Fix the usage of CPUFREQ_NEED_UPDATE_LIMITS
Commit 8e461a1cb43d ("cpufreq: schedutil: Fix superfluous updates caused by need_freq_update") modified sugov_should_update_freq() to set the need_freq_update flag only for drivers with CPUFREQ_NEED_UPDATE_LIMITS set, but that flag generally needs to be set when the policy limits change because the driver callback may need to be invoked for the new limits to take effect. However, if the return value of cpufreq_driver_resolve_freq() after applying the new limits is still equal to the previously selected frequency, the driver callback needs to be invoked only in the case when CPUFREQ_NEED_UPDATE_LIMITS is set (which means that the driver specifically wants its callback to be invoked every time the policy limits change). Update the code accordingly to avoid missing policy limits changes for drivers without CPUFREQ_NEED_UPDATE_LIMITS. Fixes: 8e461a1cb43d ("cpufreq: schedutil: Fix superfluous updates caused by need_freq_update") Closes: https://lore.kernel.org/lkml/[email protected]/ Reported-by: Stephan Gerhold <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Christian Loehle <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'rust/helpers/bug.c')
0 files changed, 0 insertions, 0 deletions