Commit 40426fc0 authored by zuoqian's avatar zuoqian Committed by Greg Kroah-Hartman
Browse files

cpufreq: scpi: compare kHz instead of Hz



[ Upstream commit 4742da97 ]

The CPU rate from clk_get_rate() may not be divisible by 1000
(e.g., 133333333). But the rate calculated from frequency(kHz) is
always divisible by 1000 (e.g., 133333000).
Comparing the rate causes a warning during CPU scaling:
"cpufreq: __target_index: Failed to change cpu frequency: -5".
When we choose to compare kHz here, the issue does not occur.

Fixes: 343a8d17 ("cpufreq: scpi: remove arm_big_little dependency")
Signed-off-by: default avatarzuoqian <zuoqian113@gmail.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bc4d689a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment