]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/processor_perflib.c
acpi cpufreq cleanup: move bailing out of function before locking the mutex
[linux-2.6-omap-h63xx.git] / drivers / acpi / processor_perflib.c
index e98071a648107ccd71ad8ac81ce5753d3e67b91c..0133af49cf06851ebb60d756404f48938b299c6f 100644 (file)
@@ -95,10 +95,10 @@ static int acpi_processor_ppc_notifier(struct notifier_block *nb,
        if (ignore_ppc)
                return 0;
 
-       mutex_lock(&performance_mutex);
-
        if (event != CPUFREQ_INCOMPATIBLE)
-               goto out;
+               return 0;
+
+       mutex_lock(&performance_mutex);
 
        pr = per_cpu(processors, policy->cpu);
        if (!pr || !pr->performance)