projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1f614a
)
tg3: Restore likely() check in tg3_poll_msix()
author
Matt Carlson
<
[email protected]
>
Mon, 5 Apr 2010 10:19:20 +0000
(10:19 +0000)
committer
David S. Miller
<
[email protected]
>
Tue, 6 Apr 2010 10:57:58 +0000
(
03:57
-0700)
When creating the new tg3_poll_msix() function, the likely() compiler
hint was dropped. This patch reintroduces it.
Signed-off-by: Matt Carlson <
[email protected]
>
Reviewed-by: Michael Chan <
[email protected]
>
Reviewed-by: Benjamin Li <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/tg3.c
patch
|
blob
|
history
diff --git
a/drivers/net/tg3.c
b/drivers/net/tg3.c
index aff11f84f5258b71bd05ef7f78586b1acafe4b2c..4c71f3efe07b18d897cc0838425ebcc89931f792 100644
(file)
--- a/
drivers/net/tg3.c
+++ b/
drivers/net/tg3.c
@@
-4987,8
+4987,8
@@
static int tg3_poll_msix(struct napi_struct *napi, int budget)
rmb();
/* check for RX/TX work to do */
- if (sblk->idx[0].tx_consumer == tnapi->tx_cons &&
-
*(tnapi->rx_rcb_prod_idx) == tnapi->rx_rcb_ptr
) {
+ if (
likely(
sblk->idx[0].tx_consumer == tnapi->tx_cons &&
+
*(tnapi->rx_rcb_prod_idx) == tnapi->rx_rcb_ptr)
) {
napi_complete(napi);
/* Reenable interrupts. */
tw32_mailbox(tnapi->int_mbox, tnapi->last_tag << 24);