perf/x86/intel: Add lockdep assert
authorPeter Zijlstra <peterz@infradead.org>
Thu, 21 May 2015 10:38:21 +0000 (12:38 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 27 May 2015 07:17:42 +0000 (09:17 +0200)
commitb32ed7f5de262b10633bb6c6dbb7f8ba46598cf4
tree054a1d2d310e07aeabb189ae7a6f155041fe4711
parent1c565833ac7950a5ddb3322e9848e0628ceba3b5
perf/x86/intel: Add lockdep assert

Lockdep is very good at finding incorrect IRQ state while locking and
is far better at telling us if we hold a lock than the _is_locked()
API. It also generates less code for !DEBUG kernels.

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