Messages in this thread Patch in this message | | | From | Robert Richter <> | Subject | [PATCH] perf, x86: Fix raw_spin_unlock_irqrestore() usage | Date | Fri, 23 Dec 2011 14:24:25 +0100 |
| |
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
| |