mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 08:51:46 -04:00
wifi: iwlegacy: convert to use secs_to_jiffies()
Since secs_to_jiffies()(commit:b35108a51cf7) has been introduced, we can use it to avoid scaling the time to msec. Signed-off-by: Yuesong Li <liyuesong@vivo.com> Acked-by: Stanislaw Gruszka <stf_xl@wp.pl> Link: https://patch.msgid.link/20250612021446.3465972-1-liyuesong@vivo.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
7c598c653a
commit
84ff903bcb
@@ -1382,7 +1382,7 @@ il4965_hdl_stats(struct il_priv *il, struct il_rx_buf *rxb)
|
||||
* we get a thermal update even if the uCode doesn't give us one
|
||||
*/
|
||||
mod_timer(&il->stats_periodic,
|
||||
jiffies + msecs_to_jiffies(recalib_seconds * 1000));
|
||||
jiffies + secs_to_jiffies(recalib_seconds));
|
||||
|
||||
if (unlikely(!test_bit(S_SCANNING, &il->status)) &&
|
||||
(pkt->hdr.cmd == N_STATS)) {
|
||||
|
||||
Reference in New Issue
Block a user