mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
d6c36cbc5e
The driver's interrupt service routine is requested with the
IRQF_NO_THREAD if MSI is available. This means that the routine is
invoked in hardirq context even on PREEMPT_RT. The routine itself is
relatively short and schedules a worker, performs register access and
schedules NAPI. On PREEMPT_RT, scheduling NAPI from hardirq results in
waking ksoftirqd for further processing so using NAPI threads with this
driver is highly recommended since it NULL routes the threaded-IRQ
efforts.
Adding rtl_hw_aspm_clkreq_enable() to the ISR is problematic on
PREEMPT_RT because the function uses spinlock_t locks which become
sleeping locks on PREEMPT_RT. The locks are only used to protect
register access and don't nest into other functions or locks. They are
also not used for unbounded period of time. Therefore it looks okay to
convert them to raw_spinlock_t.
Convert the three locks which are used from the interrupt service
routine to raw_spinlock_t.
Fixes:
|
||
---|---|---|
.. | ||
8139cp.c | ||
8139too.c | ||
atp.c | ||
atp.h | ||
Kconfig | ||
Makefile | ||
r8169_firmware.c | ||
r8169_firmware.h | ||
r8169_main.c | ||
r8169_phy_config.c | ||
r8169.h |