projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f406273
)
net: amt: convert to use secs_to_jiffies
author
Yuesong Li
<liyuesong@vivo.com>
Fri, 13 Jun 2025 10:20:12 +0000
(18:20 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Sat, 14 Jun 2025 17:53:56 +0000
(10:53 -0700)
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>
drivers/net/amt.c
patch
|
blob
|
history
diff --git
a/drivers/net/amt.c
b/drivers/net/amt.c
index
734a0b3
..
fb130fd
100644
(file)
--- a/
drivers/net/amt.c
+++ b/
drivers/net/amt.c
@@
-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)