]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/processor_perflib.c
[PATCH] sched: fix bad missed wakeups in the i386, x86_64, ia64, ACPI and APM idle...
[linux-2.6-omap-h63xx.git] / drivers / acpi / processor_perflib.c
index 7ba5e49ab302c523848930773d474c351fed30a1..6fd174a3714958946be4f4b54377c434694824e2 100644 (file)
@@ -83,10 +83,8 @@ static int acpi_processor_ppc_notifier(struct notifier_block *nb,
                goto out;
 
        ppc = (unsigned int)pr->performance_platform_limit;
-       if (!ppc)
-               goto out;
 
-       if (ppc > pr->performance->state_count)
+       if (ppc >= pr->performance->state_count)
                goto out;
 
        cpufreq_verify_within_limits(policy, 0,