diff options
author | Thomas Renninger <trenn@suse.de> | 2008-07-30 01:32:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-30 12:41:43 -0400 |
commit | 9b67c5d48f104aae6118bbb052dd79a15ab9794b (patch) | |
tree | d761b2feb402c68bcb8f8248c1e5162ddbaaf7ae /drivers/acpi | |
parent | a1531acd43310a7e4571d52e8846640667f4c74b (diff) |
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')
-rw-r--r-- | drivers/acpi/processor_perflib.c | 6 |
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, | |||
95 | if (ignore_ppc) | 95 | if (ignore_ppc) |
96 | return 0; | 96 | return 0; |
97 | 97 | ||
98 | mutex_lock(&performance_mutex); | ||
99 | |||
100 | if (event != CPUFREQ_INCOMPATIBLE) | 98 | if (event != CPUFREQ_INCOMPATIBLE) |
101 | goto out; | 99 | return 0; |
100 | |||
101 | mutex_lock(&performance_mutex); | ||
102 | 102 | ||
103 | pr = per_cpu(processors, policy->cpu); | 103 | pr = per_cpu(processors, policy->cpu); |
104 | if (!pr || !pr->performance) | 104 | if (!pr || !pr->performance) |