Loading
cpufreq/cppc: fix perf_to_khz/khz_to_perf conversion
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I99VPY CVE: NA -------------------------------- 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 the branch processing logic when nominal_freq is equal to lowest_freq. Fixes: ec1c7ad4 ("cpufreq: CPPC: Fix performance/frequency conversion") Signed-off-by:liwei <liwei728@huawei.com>