Skip to content
Commit 65accf03 authored by Seb Laveze's avatar Seb Laveze Committed by Greg Kroah-Hartman
Browse files

net: stmmac: use __napi_schedule() for PREEMPT_RT

[ Upstream commit 1f02efd1 ]

Use of __napi_schedule_irqoff() is not safe with PREEMPT_RT in which
hard interrupts are not disabled while running the threaded interrupt.

Using __napi_schedule() works for both PREEMPT_RT and mainline Linux,
just at the cost of an additional check if interrupts are disabled for
mainline (since they are already disabled).

Similar to the fix done for enetc commit 215602a8

 ("enetc: use
napi_schedule to be compatible with PREEMPT_RT")

Signed-off-by: default avatarSeb Laveze <sebastien.laveze@nxp.com>
Link: https://lore.kernel.org/r/20210112140121.1487619-1-sebastien.laveze@oss.nxp.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6f3fe96a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment