diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2016-07-04 21:36:06 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-05 07:10:29 (GMT) |
commit | ffb5bce0bfd7f196dcfb3263596202cef7b4b92c (patch) | |
tree | 88a4d468b61c9612e11906bc88604f8bdeb6ecc3 | |
parent | 9507ffc2acf04c9b1aa02e346225d268c07d79f0 (diff) | |
download | linux-ffb5bce0bfd7f196dcfb3263596202cef7b4b92c.tar.xz |
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 <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/rdc/r6040.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c index 96b2d63..13ff800 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); } } |