diff options
author | Zhu, Yi <yi.zhu@intel.com> | 2008-12-05 10:58:38 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-12 13:48:21 -0500 |
commit | f056658bb9c3085d5ec52fbdd45b38d55b899cc9 (patch) | |
tree | bebb9e05a6c9b870383280ca0bb547ee577d762a /drivers/net/wireless/iwlwifi/iwl-3945-io.h | |
parent | 7262796ab726fcefad9b588a44d1d5a9f221051f (diff) |
iwlwifi: fix time interval misuse in iwl_poll_{direct_}bit
The patch fixes the misuse of microsecond with millisecond in the
polling mechanism of the iwlwifi driver. The impact of this problem
is the unacceptable latency for the whole system (especially during
bringing down the wlan interface).
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945-io.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945-io.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-io.h b/drivers/net/wireless/iwlwifi/iwl-3945-io.h index 7dea1552a906..2f749432e4bc 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-io.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945-io.h | |||
@@ -93,7 +93,7 @@ static inline int _iwl3945_poll_bit(struct iwl3945_priv *priv, u32 addr, | |||
93 | do { | 93 | do { |
94 | if ((_iwl3945_read32(priv, addr) & mask) == (bits & mask)) | 94 | if ((_iwl3945_read32(priv, addr) & mask) == (bits & mask)) |
95 | return i; | 95 | return i; |
96 | mdelay(10); | 96 | udelay(10); |
97 | i += 10; | 97 | i += 10; |
98 | } while (i < timeout); | 98 | } while (i < timeout); |
99 | 99 | ||
@@ -276,7 +276,7 @@ static inline int _iwl3945_poll_direct_bit(struct iwl3945_priv *priv, | |||
276 | do { | 276 | do { |
277 | if ((_iwl3945_read_direct32(priv, addr) & mask) == mask) | 277 | if ((_iwl3945_read_direct32(priv, addr) & mask) == mask) |
278 | return i; | 278 | return i; |
279 | mdelay(10); | 279 | udelay(10); |
280 | i += 10; | 280 | i += 10; |
281 | } while (i < timeout); | 281 | } while (i < timeout); |
282 | 282 | ||