diff options
author | Gabor Juhos | 2009-07-15 02:17:15 +0200 |
---|---|---|
committer | John W. Linville | 2009-07-24 21:05:19 +0200 |
commit | 709ade9eb8ef06e03526115408e2fc93a9feabbd (patch) | |
tree | 66c9d0b622483ee22e6bdd89435e644e742aa550 /drivers/net/wireless/ath/ath9k/ath9k.h | |
parent | ath9k: uninline ath9k_ps_{wakeup,restore} functions (diff) | |
download | kernel-qcow2-linux-709ade9eb8ef06e03526115408e2fc93a9feabbd.tar.gz kernel-qcow2-linux-709ade9eb8ef06e03526115408e2fc93a9feabbd.tar.xz kernel-qcow2-linux-709ade9eb8ef06e03526115408e2fc93a9feabbd.zip |
ath9k: serialize ath9k_ps_{wakeup,restore} calls
These functions are changing the power mode of the chip, but this may
have unpredictable effects, if another code are trying to set the power
mode via 'ath9k_hw_setpower' in the same time from another context.
Changes-licensed-under: ISC
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 8b38c0a5d7e6..157681241733 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h @@ -576,7 +576,7 @@ struct ath_softc { u32 keymax; DECLARE_BITMAP(keymap, ATH_KEYMAX); u8 splitmic; - atomic_t ps_usecount; + unsigned long ps_usecount; enum ath9k_int imask; enum ath9k_ht_extprotspacing ht_extprotspacing; enum ath9k_ht_macmode tx_chan_width; |