Skip to content

Commit

Permalink
acpi cpufreq cleanup: move bailing out of function before locking the…
Browse files Browse the repository at this point in the history
… mutex

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>
  • Loading branch information
Thomas Renninger authored and Linus Torvalds committed Jul 30, 2008
1 parent a1531ac commit 9b67c5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/acpi/processor_perflib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9b67c5d

Please sign in to comment.