diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2015-01-21 14:27:28 +0000 |
---|---|---|
committer | Daniel Thompson <daniel.thompson@linaro.org> | 2015-01-21 14:59:33 +0000 |
commit | 6cb22bb10beffe606d360878dfea0c2dab6e01c8 (patch) | |
tree | db6cf8068fc3a0f168614c9508c5d5a4a3e2c17e /arch/arm/kernel/perf_event.c | |
parent | f913babcc85d4c87d5c556d3272b613a0145cff3 (diff) |
arm: perf: Make v7 support FIQ-safe
armv7pmu_disable_event() is called during irq handling. If irq handling
switches over to fiq then the spin locks in this function risk deadlock.
Both armv7_pmnc_disable_counter() and armv7_pmnc_disable_intens() are
unconditional co-processor writes. I haven't yet come up with an
schedule where other users of pmu_lock would break if interleaved with
these calls so I have simply removed them.
The other change required us to avoid calling irq_work_run() when run
from a FIQ handler. The pended work will either be dispatched by the
irq work IPI or by a timer handler.
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Diffstat (limited to 'arch/arm/kernel/perf_event.c')
0 files changed, 0 insertions, 0 deletions