From: Florian Fainelli Date: Mon, 4 Jul 2016 21:36:06 +0000 (-0700) Subject: net: r6040: Utilize __napi_schedule_irqoff X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ffb5bce0bfd7f196dcfb3263596202cef7b4b92c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: r6040: Utilize __napi_schedule_irqoff We are already in hard IRQ context, so we can use __napi_schedule_irqoff() to save a few operations. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c index 96b2d639c3c1..13ff80088268 100644 --- a/drivers/net/ethernet/rdc/r6040.c +++ b/drivers/net/ethernet/rdc/r6040.c @@ -690,7 +690,7 @@ static irqreturn_t r6040_interrupt(int irq, void *dev_id) if (likely(napi_schedule_prep(&lp->napi))) { /* Mask off RX interrupt */ misr &= ~(RX_INTS | TX_INTS); - __napi_schedule(&lp->napi); + __napi_schedule_irqoff(&lp->napi); } }