aboutsummaryrefslogtreecommitdiffstats
path: root/xenolinux-2.4.22-sparse/arch/xeno/drivers/network/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'xenolinux-2.4.22-sparse/arch/xeno/drivers/network/network.c')
-rw-r--r--xenolinux-2.4.22-sparse/arch/xeno/drivers/network/network.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xenolinux-2.4.22-sparse/arch/xeno/drivers/network/network.c b/xenolinux-2.4.22-sparse/arch/xeno/drivers/network/network.c
index 786af5b692..51d86c8fb3 100644
--- a/xenolinux-2.4.22-sparse/arch/xeno/drivers/network/network.c
+++ b/xenolinux-2.4.22-sparse/arch/xeno/drivers/network/network.c
@@ -189,7 +189,7 @@ static void network_tx_buf_gc(struct net_device *dev)
/* Set a new event, then check for race with update of tx_cons. */
np->net_idx->tx_event =
TX_RING_ADD(prod, (atomic_read(&np->tx_entries)>>1) + 1);
- smp_mb();
+ mb();
}
while ( prod != np->net_idx->tx_resp_prod );
@@ -320,7 +320,7 @@ static int network_start_xmit(struct sk_buff *skb, struct net_device *dev)
np->stats.tx_packets++;
/* Only notify Xen if there are no outstanding responses. */
- smp_mb();
+ mb();
if ( np->net_idx->tx_resp_prod == i )
HYPERVISOR_net_update();
@@ -394,7 +394,7 @@ static void network_interrupt(int irq, void *dev_id, struct pt_regs *ptregs)
network_alloc_rx_buffers(dev);
/* Deal with hypervisor racing our resetting of rx_event. */
- smp_mb();
+ mb();
if ( np->net_idx->rx_resp_prod != i ) goto again;
}