diff options
author | Peter Zijlstra <peterz@infradead.org> | 2009-08-13 09:51:55 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-13 12:18:43 +0200 |
commit | bcfc2602e8541ac13b1def38e2591dca072cff7a (patch) | |
tree | 0e5601dac2fbc4ca1ff452cebd1adb345b710599 /scripts/extract-ikconfig | |
parent | 8fd101f20bdf771949a8f3a5a779877d09b2fb56 (diff) |
perf_counter: Fix swcounter context invariance
perf_swcounter_is_counting() uses a lock, which means we cannot
use swcounters from NMI or when holding that particular lock,
this is unintended.
The below removes the lock, this opens up race window, but not
worse than the swcounters already experience due to RCU
traversal of the context in perf_swcounter_ctx_event().
This also fixes the hard lockups while opening a lockdep
tracepoint counter.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: stephane eranian <eranian@googlemail.com>
Cc: Corey J Ashford <cjashfor@us.ibm.com>
LKML-Reference: <1250149915.10001.66.camel@twins>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'scripts/extract-ikconfig')
0 files changed, 0 insertions, 0 deletions