]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: iwlegacy: convert to use secs_to_jiffies()
authorYuesong Li <liyuesong@vivo.com>
Thu, 12 Jun 2025 02:14:44 +0000 (10:14 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 20 Jun 2025 08:49:36 +0000 (10:49 +0200)
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>
drivers/net/wireless/intel/iwlegacy/4965-mac.c

index e9e007b48645cf7b35004cd652142f0a7fa0e620..3588dec75ebdd9481a545f99d5035fc803fcaf4e 100644 (file)
@@ -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)) {