X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=drivers%2Fthermal%2Fcpu_cooling.c;h=82e15dbb3ac7a1b3b9063a1577c61f3b1025fb27;hb=48016851c89fcb1e9ea4daa7ace142e95f7875fe;hp=c94bf2e5de629419c8e00e29f2cf23ac4507c365;hpb=e4bf063cb8b5e3648aa9917692b185068ab8ba23;p=cascardo%2Flinux.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;