Re: [PATCH V3 2/5] Thermal: fix bug of counting cpu frequencies.

2012-11-06 Thread Zhang Rui
On Tue, 2012-10-30 at 17:48 +0100, hongbo.zhang wrote: > From: "hongbo.zhang" > > 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

Re: [PATCH V3 2/5] Thermal: fix bug of counting cpu frequencies.

2012-11-06 Thread Zhang Rui
On Tue, 2012-10-30 at 17:48 +0100, hongbo.zhang wrote: From: hongbo.zhang hongbo.zh...@linaro.com 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

[PATCH V3 2/5] Thermal: fix bug of counting cpu frequencies.

2012-10-30 Thread hongbo.zhang
From: "hongbo.zhang" 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.

[PATCH V3 2/5] Thermal: fix bug of counting cpu frequencies.

2012-10-30 Thread hongbo.zhang
From: hongbo.zhang hongbo.zh...@linaro.com 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