diff options
author | Liao Chang <liaochang1@huawei.com> | 2023-08-15 09:40:17 +0800 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2023-08-17 14:12:11 +0530 |
commit | 6a4fec4f6d30a325a1b27be70729145484e6fe9f (patch) | |
tree | 08daba35a6eafc503e271906adab47782e5310ae /arch/x86/realmode | |
parent | ba6ea77d0e75113b52fdae6e01473476cb48a83c (diff) | |
download | linux-stable-6a4fec4f6d30a325a1b27be70729145484e6fe9f.tar.gz linux-stable-6a4fec4f6d30a325a1b27be70729145484e6fe9f.tar.bz2 linux-stable-6a4fec4f6d30a325a1b27be70729145484e6fe9f.zip |
cpufreq: cppc: cppc_cpufreq_get_rate() returns zero in all error cases.
The cpufreq framework used to use the zero of return value to reflect
the cppc_cpufreq_get_rate() had failed to get current frequecy and treat
all positive integer to be succeed. Since cppc_get_perf_ctrs() returns a
negative integer in error case, so it is better to convert the value to
zero as the return value of cppc_cpufreq_get_rate().
Signed-off-by: Liao Chang <liaochang1@huawei.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'arch/x86/realmode')
0 files changed, 0 insertions, 0 deletions