Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: amt: 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>
Reviewed-by: Joe Damato <joe@dama.to>
Reviewed-by: Taehee Yoo <ap420073@gmail.com>
Link: https://patch.msgid.link/20250613102014.3070898-1-liyuesong@vivo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Yuesong Li and committed by
Jakub Kicinski
c969149b f4062735

+1 -1
+1 -1
drivers/net/amt.c
··· 979 979 amt->req_cnt++; 980 980 out: 981 981 exp = min_t(u32, (1 * (1 << amt->req_cnt)), AMT_MAX_REQ_TIMEOUT); 982 - mod_delayed_work(amt_wq, &amt->req_wq, msecs_to_jiffies(exp * 1000)); 982 + mod_delayed_work(amt_wq, &amt->req_wq, secs_to_jiffies(exp)); 983 983 } 984 984 985 985 static void amt_req_work(struct work_struct *work)