]> err.no Git - linux-2.6/commitdiff
acpi cpufreq cleanup: move bailing out of function before locking the mutex
authorThomas Renninger <trenn@suse.de>
Wed, 30 Jul 2008 05:32:59 +0000 (22:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Jul 2008 16:41:43 +0000 (09:41 -0700)
Signed-off-by: Thomas Renninger <trenn@suse.de>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Len Brown <lenb@kernel.org>
Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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)