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>
This commit is contained in:

committed by
John W. Linville

parent
1063b176c0
commit
e65e1d7713
@@ -1119,8 +1119,7 @@ ath5k_hw_calibration_poll(struct ath5k_hw *ah)
|
||||
* interrupt (bit gets auto-cleared) */
|
||||
if (time_is_before_eq_jiffies(ah->ah_cal_tstamp + cal_intval)) {
|
||||
ah->ah_cal_tstamp = jiffies;
|
||||
ah->ah_swi_mask = AR5K_SWI_FULL_CALIBRATION;
|
||||
AR5K_REG_ENABLE_BITS(ah, AR5K_CR, AR5K_CR_SWI);
|
||||
tasklet_schedule(&ah->ah_sc->calib);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user