1
0
Fork 0

r8169: switch to napi_schedule_irqoff

napi_schedule() is called from hard irq context, so we can switch to
napi_schedule_irqoff() and avoid some overhead.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
hifive-unleashed-5.1
Heiner Kallweit 2018-04-17 23:21:01 +02:00 committed by David S. Miller
parent 37621493b8
commit 9a899a35b0
1 changed files with 1 additions and 1 deletions

View File

@ -7473,7 +7473,7 @@ static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance)
handled = 1;
rtl_irq_disable(tp);
napi_schedule(&tp->napi);
napi_schedule_irqoff(&tp->napi);
}
}
return IRQ_RETVAL(handled);