From: Srivatsa S. Bhat Date: Mon, 28 Apr 2014 18:54:27 +0000 (+0530) Subject: cpufreq: powernow-k6: Fix incorrect comparison with max_multipler X-Git-Tag: omap-for-v3.16/pm-signed~16^2~2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=237ede16ba5bcd4d6c612ea280518c48ca31986c;p=pandora-kernel.git 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 Signed-off-by: Srivatsa S. Bhat Acked-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed