aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorMarc Kleine-Budde <[email protected]>2024-09-30 19:02:30 +0200
committerMarc Kleine-Budde <[email protected]>2024-11-04 18:01:06 +0100
commite4de81f9e134c78ff7c75a00e43bd819643530d0 (patch)
treea0493e2d8e91b799141c1d96bd8b0c54f9aa4369 /tools/perf/scripts/python/task-analyzer.py
parent7b22846f8af5ab2f267de9eb209fb1835ee9978c (diff)
can: m_can: m_can_close(): don't call free_irq() for IRQ-less devices
In commit b382380c0d2d ("can: m_can: Add hrtimer to generate software interrupt") support for IRQ-less devices was added. Instead of an interrupt, the interrupt routine is called by a hrtimer-based polling loop. That patch forgot to change free_irq() to be only called for devices with IRQs. Fix this, by calling free_irq() conditionally only if an IRQ is available for the device (and thus has been requested previously). Fixes: b382380c0d2d ("can: m_can: Add hrtimer to generate software interrupt") Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Markus Schneider-Pargmann <[email protected]> Link: https://patch.msgid.link/[email protected] Cc: <[email protected]> # v6.6+ Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions