summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMarkus Schneider-Pargmann <msp@baylibre.com>2024-08-05 21:30:44 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2024-08-06 10:25:30 +0300
commit4d5159bfafa8d1a205d8213b7434e0402588b9ed (patch)
treed1793e5aa6134f9c7d1d3221e5ed5d80c9489ff4 /tools/perf/scripts/python/stackcollapse.py
parent40e4552eeef0e3090a5988de15889795936fd38f (diff)
downloadlinux-4d5159bfafa8d1a205d8213b7434e0402588b9ed.tar.xz
can: m_can: Do not cancel timer from within timer
On setups without interrupts, the interrupt handler is called from a timer callback. For non-peripheral receives napi is scheduled, interrupts are disabled and the timer is canceled with a blocking call. In case of an error this can happen as well. Check if napi is scheduled in the timer callback after the interrupt handler executed. If napi is scheduled, the timer is disabled. It will be reenabled by m_can_poll(). Return error values from the interrupt handler so that interrupt threads and timer callback can deal differently with it. In case of the timer we only disable the timer. The rest will be done when stopping the interface. Fixes: b382380c0d2d ("can: m_can: Add hrtimer to generate software interrupt") Fixes: a163c5761019 ("can: m_can: Start/Cancel polling timer together with interrupts") Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com> Link: https://lore.kernel.org/all/20240805183047.305630-5-msp@baylibre.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions