* [PATCH] perf, x86: Fix raw_spin_unlock_irqrestore() usage
@ 2011-12-23 13:24 Robert Richter
2011-12-24 7:32 ` [tip:perf/urgent] perf/x86: " tip-bot for Robert Richter
0 siblings, 1 reply; 2+ messages in thread
From: Robert Richter @ 2011-12-23 13:24 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: Ingo Molnar, Stephane Eranian, LKML, Robert Richter
Use raw_spin_unlock_irqrestore() as equivalent to
raw_spin_lock_irqsave().
Signed-off-by: Robert Richter <robert.richter@amd.com>
---
arch/x86/kernel/cpu/perf_event_intel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/arch/x86/kernel/cpu/perf_event_intel.c
index 2c3bf53..31286bc 100644
--- a/arch/x86/kernel/cpu/perf_event_intel.c
+++ b/arch/x86/kernel/cpu/perf_event_intel.c
@@ -1169,7 +1169,7 @@ again:
*/
c = &unconstrained;
} else if (intel_try_alt_er(event, orig_idx)) {
- raw_spin_unlock(&era->lock);
+ raw_spin_unlock_irqrestore(&era->lock, flags);
goto again;
}
raw_spin_unlock_irqrestore(&era->lock, flags);
--
1.7.8
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip:perf/urgent] perf/x86: Fix raw_spin_unlock_irqrestore() usage
2011-12-23 13:24 [PATCH] perf, x86: Fix raw_spin_unlock_irqrestore() usage Robert Richter
@ 2011-12-24 7:32 ` tip-bot for Robert Richter
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Robert Richter @ 2011-12-24 7:32 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, eranian, hpa, mingo, robert.richter, peterz, tglx, mingo
Commit-ID: 2e64694de21a812d637dcbea4471ad1f7897b049
Gitweb: http://git.kernel.org/tip/2e64694de21a812d637dcbea4471ad1f7897b049
Author: Robert Richter <robert.richter@amd.com>
AuthorDate: Fri, 23 Dec 2011 14:24:25 +0100
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Fri, 23 Dec 2011 17:57:01 +0100
perf/x86: Fix raw_spin_unlock_irqrestore() usage
Use raw_spin_unlock_irqrestore() as equivalent to
raw_spin_lock_irqsave().
Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1324646665-13334-1-git-send-email-robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
arch/x86/kernel/cpu/perf_event_intel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/arch/x86/kernel/cpu/perf_event_intel.c
index 8d601b1..121f1be 100644
--- a/arch/x86/kernel/cpu/perf_event_intel.c
+++ b/arch/x86/kernel/cpu/perf_event_intel.c
@@ -1169,7 +1169,7 @@ again:
*/
c = &unconstrained;
} else if (intel_try_alt_er(event, orig_idx)) {
- raw_spin_unlock(&era->lock);
+ raw_spin_unlock_irqrestore(&era->lock, flags);
goto again;
}
raw_spin_unlock_irqrestore(&era->lock, flags);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-24 7:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-23 13:24 [PATCH] perf, x86: Fix raw_spin_unlock_irqrestore() usage Robert Richter
2011-12-24 7:32 ` [tip:perf/urgent] perf/x86: " tip-bot for Robert Richter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®