projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c56583
)
perf/x86/intel: Add lockdep assert
author
Peter Zijlstra
<
[email protected]
>
Thu, 21 May 2015 10:38:21 +0000
(12:38 +0200)
committer
Ingo Molnar
<
[email protected]
>
Wed, 27 May 2015 07:17:42 +0000
(09:17 +0200)
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) <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Stephane Eranian <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc: Vince Weaver <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/cpu/perf_event_intel.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/perf_event_intel.c
b/arch/x86/kernel/cpu/perf_event_intel.c
index 0ea040562bb8805d9fb87a5673158f7eeccc3873..5182cee16367390808fb28c8ec0c22d60d87dbdc 100644
(file)
--- a/
arch/x86/kernel/cpu/perf_event_intel.c
+++ b/
arch/x86/kernel/cpu/perf_event_intel.c
@@
-1926,7
+1926,6
@@
intel_start_scheduling(struct cpu_hw_events *cpuc)
* in stop_event_scheduling()
* makes scheduling appear as a transaction
*/
- WARN_ON_ONCE(!irqs_disabled());
raw_spin_lock(&excl_cntrs->lock);
/*
@@
-2208,7
+2207,7
@@
static void intel_commit_scheduling(struct cpu_hw_events *cpuc, int idx, int cnt
xl = &excl_cntrs->states[tid];
-
WARN_ON_ONCE(!raw_spin_is_locked(&excl_cntrs->lock)
);
+
lockdep_assert_held(&excl_cntrs->lock
);
if (cntr >= 0) {
if (c->flags & PERF_X86_EVENT_EXCL)