Skip to content

Commit b63ad06

Browse files
Sean AndersonPaolo Abeni
authored andcommitted
doc: net: napi: Update documentation for napi_schedule_irqoff
Since commit 8380c81 ("net: Treat __napi_schedule_irqoff() as __napi_schedule() on PREEMPT_RT"), napi_schedule_irqoff will do the right thing if IRQs are threaded. Therefore, there is no need to use IRQF_NO_THREAD. Signed-off-by: Sean Anderson <[email protected]> Reviewed-by: Bagas Sanjaya <[email protected]> Reviewed-by: Sebastian Andrzej Siewior <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 1127c73 commit b63ad06

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Documentation/networking/napi.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,8 @@ IRQ should only be unmasked after a successful call to napi_complete_done():
144144
145145
napi_schedule_irqoff() is a variant of napi_schedule() which takes advantage
146146
of guarantees given by being invoked in IRQ context (no need to
147-
mask interrupts). Note that PREEMPT_RT forces all interrupts
148-
to be threaded so the interrupt may need to be marked ``IRQF_NO_THREAD``
149-
to avoid issues on real-time kernel configurations.
147+
mask interrupts). napi_schedule_irqoff() will fall back to napi_schedule() if
148+
IRQs are threaded (such as if ``PREEMPT_RT`` is enabled).
150149

151150
Instance to queue mapping
152151
-------------------------

0 commit comments

Comments
 (0)