X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fthermal%2Fcpu_cooling.c;h=82e15dbb3ac7a1b3b9063a1577c61f3b1025fb27;hb=bb8c4701704d81ef98657dc51adb99aa5a0c5ac9;hp=c94bf2e5de629419c8e00e29f2cf23ac4507c365;hpb=4ece92df296f472e49d26ee38ddbed4596458132;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index c94bf2e5de62..82e15dbb3ac7 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -167,7 +167,7 @@ static int get_property(unsigned int cpu, unsigned long input, continue; /* get the frequency order */ - if (freq != CPUFREQ_ENTRY_INVALID && descend != -1) + if (freq != CPUFREQ_ENTRY_INVALID && descend == -1) descend = !!(freq > table[i].frequency); freq = table[i].frequency;