From: Robert Richter Date: Fri, 23 Dec 2011 13:24:25 +0000 (+0100) Subject: perf/x86: Fix raw_spin_unlock_irqrestore() usage X-Git-Tag: firefly_0821_release~3680^2~3653^3~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2e64694de21a812d637dcbea4471ad1f7897b049;p=firefly-linux-kernel-4.4.55.git 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 Cc: Stephane Eranian Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1324646665-13334-1-git-send-email-robert.richter@amd.com Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/arch/x86/kernel/cpu/perf_event_intel.c index 8d601b18bf9f..121f1be4da19 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);