Commit 9c51b05a authored by Committed by Zhang Rui
Thermal: fix bug of counting cpu frequencies.
In the while loop for counting cpu frequencies, if table[i].frequency equals CPUFREQ_ENTRY_INVALID, index i won't be increased, so this leads to an endless loop, what's more the index i cannot be referred as cpu frequencies number if there is CPUFREQ_ENTRY_INVALID case. Signed-off-by: hongbo.zhang <email@example.com> Reviewed-by: Viresh Kumar <firstname.lastname@example.org> Reviewed-by: Amit Daniel Kachhap <email@example.com> Signed-off-by: Zhang Rui <firstname.lastname@example.org>
Showing with 6 additions and 4 deletions