Commit c969149b authored by Yuesong Li's avatar Yuesong Li Committed by Jakub Kicinski
Browse files

net: amt: convert to use secs_to_jiffies



Since secs_to_jiffies()(commit:b35108a5) has been introduced, we can
use it to avoid scaling the time to msec.

Signed-off-by: default avatarYuesong Li <liyuesong@vivo.com>
Reviewed-by: default avatarJoe Damato <joe@dama.to>
Reviewed-by: default avatarTaehee Yoo <ap420073@gmail.com>
Link: https://patch.msgid.link/20250613102014.3070898-1-liyuesong@vivo.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f4062735
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -979,7 +979,7 @@ static void amt_event_send_request(struct amt_dev *amt)
	amt->req_cnt++;
out:
	exp = min_t(u32, (1 * (1 << amt->req_cnt)), AMT_MAX_REQ_TIMEOUT);
	mod_delayed_work(amt_wq, &amt->req_wq, msecs_to_jiffies(exp * 1000));
	mod_delayed_work(amt_wq, &amt->req_wq, secs_to_jiffies(exp));
}

static void amt_req_work(struct work_struct *work)