diff options
author | Jay Cliburn <jacliburn@bellsouth.net> | 2007-07-15 12:03:25 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-16 18:29:16 -0400 |
commit | 70d9d4b2477f90fb99227026f4cb6e75920eb1ec (patch) | |
tree | e7a0af9c22d6e2a3f3474160e550d641a27bf12b /drivers | |
parent | d4f01a77d74ced4dab50d0cf75d568f48a3b6b4e (diff) |
atl1: remove irq_sem
Remove unnecessary irq_sem code.
Signed-off-by: Chris Snook <csnook@redhat.com>
Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/atl1/atl1.h | 1 | ||||
-rw-r--r-- | drivers/net/atl1/atl1_main.c | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/atl1/atl1.h b/drivers/net/atl1/atl1.h index b1c6034e68fa..a769e7b8b80b 100644 --- a/drivers/net/atl1/atl1.h +++ b/drivers/net/atl1/atl1.h | |||
@@ -236,7 +236,6 @@ struct atl1_adapter { | |||
236 | u16 link_speed; | 236 | u16 link_speed; |
237 | u16 link_duplex; | 237 | u16 link_duplex; |
238 | spinlock_t lock; | 238 | spinlock_t lock; |
239 | atomic_t irq_sem; | ||
240 | struct work_struct tx_timeout_task; | 239 | struct work_struct tx_timeout_task; |
241 | struct work_struct link_chg_task; | 240 | struct work_struct link_chg_task; |
242 | struct work_struct pcie_dma_to_rst_task; | 241 | struct work_struct pcie_dma_to_rst_task; |
diff --git a/drivers/net/atl1/atl1_main.c b/drivers/net/atl1/atl1_main.c index 3bb40dd4a410..ef12dba85811 100644 --- a/drivers/net/atl1/atl1_main.c +++ b/drivers/net/atl1/atl1_main.c | |||
@@ -162,7 +162,6 @@ static int __devinit atl1_sw_init(struct atl1_adapter *adapter) | |||
162 | hw->cmb_tx_timer = 1; /* about 2us */ | 162 | hw->cmb_tx_timer = 1; /* about 2us */ |
163 | hw->smb_timer = 100000; /* about 200ms */ | 163 | hw->smb_timer = 100000; /* about 200ms */ |
164 | 164 | ||
165 | atomic_set(&adapter->irq_sem, 0); | ||
166 | spin_lock_init(&adapter->lock); | 165 | spin_lock_init(&adapter->lock); |
167 | spin_lock_init(&adapter->mb_lock); | 166 | spin_lock_init(&adapter->mb_lock); |
168 | 167 | ||
@@ -268,8 +267,8 @@ err_nomem: | |||
268 | */ | 267 | */ |
269 | static void atl1_irq_enable(struct atl1_adapter *adapter) | 268 | static void atl1_irq_enable(struct atl1_adapter *adapter) |
270 | { | 269 | { |
271 | if (likely(!atomic_dec_and_test(&adapter->irq_sem))) | 270 | iowrite32(IMR_NORMAL_MASK, adapter->hw.hw_addr + REG_IMR); |
272 | iowrite32(IMR_NORMAL_MASK, adapter->hw.hw_addr + REG_IMR); | 271 | ioread32(adapter->hw.hw_addr + REG_IMR); |
273 | } | 272 | } |
274 | 273 | ||
275 | static void atl1_clear_phy_int(struct atl1_adapter *adapter) | 274 | static void atl1_clear_phy_int(struct atl1_adapter *adapter) |
@@ -1195,7 +1194,6 @@ static u32 atl1_configure(struct atl1_adapter *adapter) | |||
1195 | */ | 1194 | */ |
1196 | static void atl1_irq_disable(struct atl1_adapter *adapter) | 1195 | static void atl1_irq_disable(struct atl1_adapter *adapter) |
1197 | { | 1196 | { |
1198 | atomic_inc(&adapter->irq_sem); | ||
1199 | iowrite32(0, adapter->hw.hw_addr + REG_IMR); | 1197 | iowrite32(0, adapter->hw.hw_addr + REG_IMR); |
1200 | ioread32(adapter->hw.hw_addr + REG_IMR); | 1198 | ioread32(adapter->hw.hw_addr + REG_IMR); |
1201 | synchronize_irq(adapter->pdev->irq); | 1199 | synchronize_irq(adapter->pdev->irq); |