diff options
| author | Zwane Mwaikambo <zwane@linuxpower.ca> | 2003-06-05 17:07:21 -0400 |
|---|---|---|
| committer | Richard Henderson <rth@kanga.twiddle.net> | 2003-06-05 17:07:21 -0400 |
| commit | f86e71e8e3d74fe06a672796c5fb2d38d967e1e8 (patch) | |
| tree | f933452851c6ecf0593811269b9a45e987237b97 | |
| parent | 08d84e5372154f28d4b4da4571976f513ab3b3d3 (diff) | |
[PATCH] cli/sti cleanup for fmvj18x
This one should be safe as we're protected by the xmit_lock in all instances
| -rw-r--r-- | drivers/net/pcmcia/fmvj18x_cs.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c index 58924d49098e..8ff68e0358c3 100644 --- a/drivers/net/pcmcia/fmvj18x_cs.c +++ b/drivers/net/pcmcia/fmvj18x_cs.c @@ -923,8 +923,7 @@ static void fjn_tx_timeout(struct net_device *dev) htons(inw(ioaddr +14))); lp->stats.tx_errors++; /* ToDo: We should try to restart the adaptor... */ - cli(); - + local_irq_disable(); fjn_reset(dev); lp->tx_started = 0; @@ -932,7 +931,7 @@ static void fjn_tx_timeout(struct net_device *dev) lp->tx_queue_len = 0; lp->sent = 0; lp->open_time = jiffies; - sti(); + local_irq_enable(); netif_wake_queue(dev); } @@ -1361,9 +1360,8 @@ static void set_rx_mode(struct net_device *dev) mc_filter[bit >> 3] |= (1 << bit); } } - - save_flags(flags); - cli(); + + local_irq_save(flags); if (memcmp(mc_filter, lp->mc_filter, sizeof(mc_filter))) { int saved_bank = inb(ioaddr + CONFIG_1); /* Switch to bank 1 and set the multicast table. */ @@ -1373,5 +1371,5 @@ static void set_rx_mode(struct net_device *dev) memcpy(lp->mc_filter, mc_filter, sizeof(mc_filter)); outb(saved_bank, ioaddr + CONFIG_1); } - restore_flags(flags); + local_irq_restore(flags); } |
