aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorDoug Smythies <[email protected]>2023-08-20 13:46:49 -0700
committerRafael J. Wysocki <[email protected]>2023-08-21 21:11:40 +0200
commitd51847acb018d83186e4af67bc93f9a00a8644f7 (patch)
tree2d408e961133e2483a3ceb8a4db49f76a9d32b3a /lib/test_fortify/write_overflow-strncpy-src.c
parented9571647eff3dd7a53068f83338530959c7ace4 (diff)
cpufreq: intel_pstate: set stale CPU frequency to minimum
The intel_pstate CPU frequency scaling driver does not use policy->cur and it is 0. When the CPU frequency is outdated arch_freq_get_on_cpu() will default to the nominal clock frequency when its call to cpufreq_quick_getpolicy_cur returns the never updated 0. Thus, the listed frequency might be outside of currently set limits. Some users are complaining about the high reported frequency, albeit stale, when their system is idle and/or it is above the reduced maximum they have set. This patch will maintain policy_cur for the intel_pstate driver at the current minimum CPU frequency. Reported-by: Yang Jie <[email protected]> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217597 Signed-off-by: Doug Smythies <[email protected]> [ rjw: White space damage fixes and comment adjustment ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions