diff options
author | Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> | 2014-04-28 20:54:27 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-04-29 01:22:53 +0200 |
commit | 237ede16ba5bcd4d6c612ea280518c48ca31986c (patch) | |
tree | 3936e8dcbf35e6317c49b212ac64a641800dd61c /drivers/cpufreq/speedstep-lib.h | |
parent | cpufreq: longhaul: Fix double invocation of cpufreq_freq_transition_begin/end (diff) | |
download | linux-237ede16ba5bcd4d6c612ea280518c48ca31986c.tar.xz linux-237ede16ba5bcd4d6c612ea280518c48ca31986c.zip |
cpufreq: powernow-k6: Fix incorrect comparison with max_multipler
The value of 'max_multiplier' is meant to be used for comparison with
clock_ratio[index].driver_data, not the index itself! Fix the code in
powernow_k6_cpu_exit() that has this bug.
Also, while at it, make the for-loop condition look for CPUFREQ_TABLE_END,
instead of hard-coding the loop count to 8.
Reported-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/speedstep-lib.h')
0 files changed, 0 insertions, 0 deletions