perf/x86/intel: Simplify put_exclusive_constraints()
authorPeter Zijlstra <peterz@infradead.org>
Fri, 22 May 2015 09:36:13 +0000 (11:36 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 27 May 2015 07:17:46 +0000 (09:17 +0200)
commitba040653b48d32afa8b6c3331eae97c6bbb66f03
treea48ee59b5f38a1932f61147dd49c52a6c0f864ca
parent8736e548db0f48244132bc36331496494625bbaf
perf/x86/intel: Simplify put_exclusive_constraints()

Don't bother with taking locks if we're not actually going to do
anything. Also, drop the _irqsave(), this is very much only called
from IRQ-disabled context.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel.c