projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9507ffc
)
net: r6040: Utilize __napi_schedule_irqoff
author
Florian Fainelli
<f.fainelli@gmail.com>
Mon, 4 Jul 2016 21:36:06 +0000
(14:36 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 5 Jul 2016 07:10:29 +0000
(
00:10
-0700)
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>
drivers/net/ethernet/rdc/r6040.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/rdc/r6040.c
b/drivers/net/ethernet/rdc/r6040.c
index 96b2d639c3c1bcee58004d85192abe4382f9843e..13ff800882686f366feb3a967d64a3240955ef9f 100644
(file)
--- 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);
}
}