diff options
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r-- | drivers/net/sky2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 54947ae99482..39916e7cf6f9 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <linux/delay.h> | 45 | #include <linux/delay.h> |
46 | #include <linux/workqueue.h> | 46 | #include <linux/workqueue.h> |
47 | #include <linux/if_vlan.h> | 47 | #include <linux/if_vlan.h> |
48 | #include <linux/prefetch.h> | ||
48 | #include <linux/mii.h> | 49 | #include <linux/mii.h> |
49 | 50 | ||
50 | #include <asm/irq.h> | 51 | #include <asm/irq.h> |
@@ -1248,6 +1249,7 @@ static void sky2_tx_complete(struct sky2_port *sky2, u16 done) | |||
1248 | 1249 | ||
1249 | nxt = re->idx; | 1250 | nxt = re->idx; |
1250 | BUG_ON(nxt >= TX_RING_SIZE); | 1251 | BUG_ON(nxt >= TX_RING_SIZE); |
1252 | prefetch(sky2->tx_ring + nxt); | ||
1251 | 1253 | ||
1252 | /* Check for partial status */ | 1254 | /* Check for partial status */ |
1253 | if (tx_dist(put, done) < tx_dist(put, nxt)) | 1255 | if (tx_dist(put, done) < tx_dist(put, nxt)) |
@@ -1659,6 +1661,7 @@ static struct sk_buff *sky2_receive(struct sky2_port *sky2, | |||
1659 | sky2->netdev->name, sky2->rx_next, status, length); | 1661 | sky2->netdev->name, sky2->rx_next, status, length); |
1660 | 1662 | ||
1661 | sky2->rx_next = (sky2->rx_next + 1) % sky2->rx_pending; | 1663 | sky2->rx_next = (sky2->rx_next + 1) % sky2->rx_pending; |
1664 | prefetch(sky2->rx_ring + sky2->rx_next); | ||
1662 | 1665 | ||
1663 | if (status & GMR_FS_ANY_ERR) | 1666 | if (status & GMR_FS_ANY_ERR) |
1664 | goto error; | 1667 | goto error; |