aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2013-11-28 18:11:45 +0100
committerSimon Horman <[email protected]>2013-12-14 09:58:12 +0900
commitcaec70381b469d6ed1bd3d0441a19aa6de0bbff3 (patch)
tree8a68b6cc78511ef077c56fecbc854dc991050dd2 /tools/perf/util/trace-event-scripting.c
parente2afca6988c335d2ec7b66f2fadcd63286570bf8 (diff)
serial: sh-sci: Don't enable/disable port from within break timer
The break timer accesses hardware registers and thus requires the port to be enabled. It currently ensures this by enabling the port at the beginning of the timer handler, and disabling it at the end. However, the enable/disable operations call the runtime PM sync functions, which are not allowed in atomic context. The current situation is thus broken. This change relies on non-atomic code to enable/disable the port. The break timer will only be started from the IRQ handler, which already runs with the port enabled. We just need to ensure that the port won't be disabled with the timer running, and that's easily done by just cancelling the timer in the port disable function. Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Magnus Damm <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Simon Horman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions