diff options
author | Bing Zhao <bzhao@marvell.com> | 2013-04-19 20:44:44 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-04-22 15:20:28 -0400 |
commit | 4587eea5b787b8373c72791a92084010f79443d0 (patch) | |
tree | 9f90e04abf1e507cc75080164f305d7441e5bc04 /drivers/net/wireless | |
parent | 0648f3a4b0e9598d75e8f68f0e20874239c2cb95 (diff) |
mwifiex: make use of msecs_to_jiffies()
Use msecs_to_jiffies() wherever possible.
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/mwifiex/11n_rxreorder.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/cmdevt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/11n_rxreorder.c b/drivers/net/wireless/mwifiex/11n_rxreorder.c index 5e796f847088..ada809f576fe 100644 --- a/drivers/net/wireless/mwifiex/11n_rxreorder.c +++ b/drivers/net/wireless/mwifiex/11n_rxreorder.c | |||
@@ -447,7 +447,7 @@ int mwifiex_11n_rx_reorder_pkt(struct mwifiex_private *priv, | |||
447 | end_win = ((start_win + win_size) - 1) & (MAX_TID_VALUE - 1); | 447 | end_win = ((start_win + win_size) - 1) & (MAX_TID_VALUE - 1); |
448 | del_timer(&tbl->timer_context.timer); | 448 | del_timer(&tbl->timer_context.timer); |
449 | mod_timer(&tbl->timer_context.timer, | 449 | mod_timer(&tbl->timer_context.timer, |
450 | jiffies + (MIN_FLUSH_TIMER_MS * win_size * HZ) / 1000); | 450 | jiffies + msecs_to_jiffies(MIN_FLUSH_TIMER_MS * win_size)); |
451 | 451 | ||
452 | /* | 452 | /* |
453 | * If seq_num is less then starting win then ignore and drop the | 453 | * If seq_num is less then starting win then ignore and drop the |
diff --git a/drivers/net/wireless/mwifiex/cmdevt.c b/drivers/net/wireless/mwifiex/cmdevt.c index da469c336aa1..74db0d24a579 100644 --- a/drivers/net/wireless/mwifiex/cmdevt.c +++ b/drivers/net/wireless/mwifiex/cmdevt.c | |||
@@ -250,7 +250,7 @@ static int mwifiex_dnld_cmd_to_fw(struct mwifiex_private *priv, | |||
250 | 250 | ||
251 | /* Setup the timer after transmit command */ | 251 | /* Setup the timer after transmit command */ |
252 | mod_timer(&adapter->cmd_timer, | 252 | mod_timer(&adapter->cmd_timer, |
253 | jiffies + (MWIFIEX_TIMER_10S * HZ) / 1000); | 253 | jiffies + msecs_to_jiffies(MWIFIEX_TIMER_10S)); |
254 | 254 | ||
255 | return 0; | 255 | return 0; |
256 | } | 256 | } |