tg3: Restore likely() check in tg3_poll_msix()
Subsystems (2)
PATCH 2/12 tg3: Restore likely() check in tg3_poll_msix()
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]>
--- drivers/net/tg3.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/tg3.c +2 -2
@@ -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 );
Signature · 1 line
1.6.4.4