|
@@ -167,7 +167,7 @@ static int get_property(unsigned int cpu, unsigned long input,
|
|
continue;
|
|
continue;
|
|
|
|
|
|
/* get the frequency order */
|
|
/* get the frequency order */
|
|
- if (freq != CPUFREQ_ENTRY_INVALID && descend != -1)
|
|
|
|
|
|
+ if (freq != CPUFREQ_ENTRY_INVALID && descend == -1)
|
|
descend = !!(freq > table[i].frequency);
|
|
descend = !!(freq > table[i].frequency);
|
|
|
|
|
|
freq = table[i].frequency;
|
|
freq = table[i].frequency;
|