]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: cached_resolved_idx can not be negative
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 30 Jul 2020 03:29:40 +0000 (08:59 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 30 Jul 2020 06:10:16 +0000 (11:40 +0530)
commit2c5921ba94d967e2110390fc1196d0e9d5c984b7
tree41b1cc43d5fe5eacc2c3ef5706de0af6256847b5
parentb11e2eb7a02ff92fa9fec0ff9d85d7f745b297a4
cpufreq: cached_resolved_idx can not be negative

It is not possible for cached_resolved_idx to be invalid here as the
cpufreq core always sets index to a positive value.

Change its type to unsigned int and fix qcom usage a bit.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq.c
drivers/cpufreq/qcom-cpufreq-hw.c
include/linux/cpufreq.h