summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_perflib.c
diff options
context:
space:
mode:
authorThomas Renninger <trenn@suse.de>2008-07-30 07:32:59 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-30 18:41:43 +0200
commit9b67c5d48f104aae6118bbb052dd79a15ab9794b (patch)
treed761b2feb402c68bcb8f8248c1e5162ddbaaf7ae /drivers/acpi/processor_perflib.c
parentcpufreq acpi: only call _PPC after cpufreq ACPI init funcs got called already (diff)
downloadlinux-9b67c5d48f104aae6118bbb052dd79a15ab9794b.tar.xz
linux-9b67c5d48f104aae6118bbb052dd79a15ab9794b.zip
acpi cpufreq cleanup: move bailing out of function before locking the 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>
Diffstat (limited to 'drivers/acpi/processor_perflib.c')
-rw-r--r--drivers/acpi/processor_perflib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c
index e98071a64810..0133af49cf06 100644
--- a/drivers/acpi/processor_perflib.c
+++ b/drivers/acpi/processor_perflib.c
@@ -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)