aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/phy.c
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-03-25 01:49:09 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-03-31 14:39:08 -0400
commite65e1d7713da89d98f01c3f4267b2c9ecb03c16f (patch)
tree4df0ab05508bf9d55b7a065dc284861ed0685da9 /drivers/net/wireless/ath/ath5k/phy.c
parent1063b176c072b936c43d0e6270168b19881ecb72 (diff)
ath5k: remove the use of SWI interrupt
We don't need to generate a software interrupt (SWI) just to schedule a tasklet - we can just schedule the tasklet directly. Rename constants, names, etc to reflect the fact that we don't use SWI any more. Also move the flag handling into the tasklet and prepare it to behave correctly when there are multiple flags present. Signed-off-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/phy.c')
-rw-r--r--drivers/net/wireless/ath/ath5k/phy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c
index 01b3f29ec13d..075873f98428 100644
--- a/drivers/net/wireless/ath/ath5k/phy.c
+++ b/drivers/net/wireless/ath/ath5k/phy.c
@@ -1119,8 +1119,7 @@ ath5k_hw_calibration_poll(struct ath5k_hw *ah)
1119 * interrupt (bit gets auto-cleared) */ 1119 * interrupt (bit gets auto-cleared) */
1120 if (time_is_before_eq_jiffies(ah->ah_cal_tstamp + cal_intval)) { 1120 if (time_is_before_eq_jiffies(ah->ah_cal_tstamp + cal_intval)) {
1121 ah->ah_cal_tstamp = jiffies; 1121 ah->ah_cal_tstamp = jiffies;
1122 ah->ah_swi_mask = AR5K_SWI_FULL_CALIBRATION; 1122 tasklet_schedule(&ah->ah_sc->calib);
1123 AR5K_REG_ENABLE_BITS(ah, AR5K_CR, AR5K_CR_SWI);
1124 } 1123 }
1125} 1124}
1126 1125