diff options
author | Marek Vasut <[email protected]> | 2023-01-12 19:04:17 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-01-19 14:55:00 +0100 |
commit | f24771b62a83239f0dce816bddf0f6807f436235 (patch) | |
tree | d50629b1c73b98b74b4165a0ff73e6dad1976286 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 4f39aca2360c82dccd2f5179d77e94aab665bea6 (diff) |
serial: stm32: Merge hard IRQ and threaded IRQ handling into single IRQ handler
Requesting an interrupt with IRQF_ONESHOT will run the primary handler
in the hard-IRQ context even in the force-threaded mode. The
force-threaded mode is used by PREEMPT_RT in order to avoid acquiring
sleeping locks (spinlock_t) in hard-IRQ context. This combination
makes it impossible and leads to "sleeping while atomic" warnings.
Use one interrupt handler for both handlers (primary and secondary)
and drop the IRQF_ONESHOT flag which is not needed.
Fixes: e359b4411c283 ("serial: stm32: fix threaded interrupt handling")
Reviewed-by: Sebastian Andrzej Siewior <[email protected]>
Tested-by: Valentin Caron <[email protected]> # V3
Signed-off-by: Marek Vasut <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions