summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-milbeaut.c
diff options
context:
space:
mode:
authorliwei <liwei728@huawei.com>2024-10-24 10:29:52 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-10-24 17:35:13 +0200
commitd93df29bdab133b85e94b3c328e7fe26a0ebd56c (patch)
treebfea9ff046a4a1ee91d1303b156b772f53849fd9 /drivers/clk/clk-milbeaut.c
parent29dcbea92460e82181774b46f08b55a917615a97 (diff)
cpufreq: CPPC: fix perf_to_khz/khz_to_perf conversion exception
When the nominal_freq recorded by the kernel is equal to the lowest_freq, and the frequency adjustment operation is triggered externally, there is a logic error in cppc_perf_to_khz()/cppc_khz_to_perf(), resulting in perf and khz conversion errors. Fix this by adding a branch processing logic when nominal_freq is equal to lowest_freq. Fixes: ec1c7ad47664 ("cpufreq: CPPC: Fix performance/frequency conversion") Signed-off-by: liwei <liwei728@huawei.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Link: https://patch.msgid.link/20241024022952.2627694-1-liwei728@huawei.com [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/clk/clk-milbeaut.c')
0 files changed, 0 insertions, 0 deletions