aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorDeng-Cheng Zhu <[email protected]>2011-11-22 03:28:46 +0800
committerRalf Baechle <[email protected]>2011-12-07 22:04:41 +0000
commit74653ccf231a3100dd03e16e7a4178868a37332e (patch)
treed4709f0b9a7fdfcd9a70d9a6b34dfd3f8f906270 /tools/perf/scripts/python/syscall-counts.py
parent2c1b54d331bde7afbf8da24789cce2402e155495 (diff)
MIPS/Perf-events: Remove erroneous check on active_events
Port the following patch for ARM by Mark Rutland: - 57ce9bb39b476accf8fba6e16aea67ed76ea523d ARM: 6902/1: perf: Remove erroneous check on active_events When initialising a PMU, there is a check to protect against races with other CPUs filling all of the available event slots. Since armpmu_add checks that an event can be scheduled, we do not need to do this at initialisation time. Furthermore the current code is broken because it assumes that atomic_inc_not_zero will unconditionally increment active_counts and then tries to decrement it again on failure. This patch removes the broken, redundant code. Signed-off-by: Deng-Cheng Zhu <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: David Daney <[email protected]> Cc: Eyal Barzilay <[email protected]> Cc: Zenon Fortuna <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/3106/ Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions