Browse Source

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>
Robert Richter 13 years ago
parent
commit
2e64694de2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/x86/kernel/cpu/perf_event_intel.c

+ 1 - 1
arch/x86/kernel/cpu/perf_event_intel.c

@@ -1169,7 +1169,7 @@ again:
 		 */
 		 */
 		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);