diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-10 16:32:19 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-12 20:59:27 (GMT) |
commit | c266c71a9cbdccb40fb6f4c05d4ddaa6226e5eba (patch) | |
tree | c8efcb9c2f74d8a54e4ac8e12f80bb856a055291 /drivers/net/wireless/ath/ath5k/ath5k.h | |
parent | 5b7916ad8c29da9f30fbf03a8b61862acdba00ce (diff) | |
download | linux-fsl-qoriq-c266c71a9cbdccb40fb6f4c05d4ddaa6226e5eba.tar.xz |
ath5k: reduce interrupt load caused by rx/tx interrupts
While the rx/tx tasklet is pending, new unnecessary interrupts may arrive.
Decrease the load by temporarily disabling the interrupts until the tasklet
has completed.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/ath5k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/ath5k.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h index fcaf4ed..e303db7 100644 --- a/drivers/net/wireless/ath/ath5k/ath5k.h +++ b/drivers/net/wireless/ath/ath5k/ath5k.h @@ -872,6 +872,19 @@ enum ath5k_int { AR5K_INT_QTRIG = 0x40000000, /* Non common */ AR5K_INT_GLOBAL = 0x80000000, + AR5K_INT_TX_ALL = AR5K_INT_TXOK + | AR5K_INT_TXDESC + | AR5K_INT_TXERR + | AR5K_INT_TXEOL + | AR5K_INT_TXURN, + + AR5K_INT_RX_ALL = AR5K_INT_RXOK + | AR5K_INT_RXDESC + | AR5K_INT_RXERR + | AR5K_INT_RXNOFRM + | AR5K_INT_RXEOL + | AR5K_INT_RXORN, + AR5K_INT_COMMON = AR5K_INT_RXOK | AR5K_INT_RXDESC | AR5K_INT_RXERR |