Skip to content

Commit 2e64694

Browse files
Robert RichterIngo Molnar
authored andcommitted
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 <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 55205c9 commit 2e64694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/perf_event_intel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ __intel_shared_reg_get_constraints(struct cpu_hw_events *cpuc,
11691169
*/
11701170
c = &unconstrained;
11711171
} else if (intel_try_alt_er(event, orig_idx)) {
1172-
raw_spin_unlock(&era->lock);
1172+
raw_spin_unlock_irqrestore(&era->lock, flags);
11731173
goto again;
11741174
}
11751175
raw_spin_unlock_irqrestore(&era->lock, flags);

0 commit comments

Comments
 (0)