Skip to content
Snippets Groups Projects
Commit 2e64694d authored by Robert Richter's avatar Robert Richter Committed by Ingo Molnar
Browse files

perf/x86: Fix raw_spin_unlock_irqrestore() usage


Use raw_spin_unlock_irqrestore() as equivalent to
raw_spin_lock_irqsave().

Signed-off-by: default avatarRobert 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: default avatarIngo Molnar <mingo@elte.hu>
parent 55205c91
No related branches found
No related tags found
No related merge requests found
...@@ -1169,7 +1169,7 @@ __intel_shared_reg_get_constraints(struct cpu_hw_events *cpuc, ...@@ -1169,7 +1169,7 @@ __intel_shared_reg_get_constraints(struct cpu_hw_events *cpuc,
*/ */
c = &unconstrained; c = &unconstrained;
} else if (intel_try_alt_er(event, orig_idx)) { } else if (intel_try_alt_er(event, orig_idx)) {
raw_spin_unlock(&era->lock); raw_spin_unlock_irqrestore(&era->lock, flags);
goto again; goto again;
} }
raw_spin_unlock_irqrestore(&era->lock, flags); raw_spin_unlock_irqrestore(&era->lock, flags);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment