]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/processor_perflib.c
Pull style into test branch
[linux-2.6-omap-h63xx.git] / drivers / acpi / processor_perflib.c
index 39fdbcc37d438c71625fa13206e5568f8e740df8..0e60382714bbbacb6d63219b4ba51ff84c3612a0 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,