[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aEwUh3A3gvj64v0a@MacBook-Air.local>
Date: Fri, 13 Jun 2025 15:07:35 +0300
From: Joe Damato <joe@...a.to>
To: Yuesong Li <liyuesong@...o.com>
Cc: Taehee Yoo <ap420073@...il.com>, Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
opensource.kernel@...o.com
Subject: Re: [PATCH net-next v1] net: amt: convert to use secs_to_jiffies
On Fri, Jun 13, 2025 at 06:20:12PM +0800, Yuesong Li wrote:
> 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@...o.com>
> ---
> drivers/net/amt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/amt.c b/drivers/net/amt.c
> index 734a0b3242a9..fb130fde68c0 100644
> --- 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)
Seems fine, but minor nit on the commit message -- when referring to commit
you should include the one-liner as per the documentation [1].
For example, maybe something like:
Since commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()"), ...
Otherwise:
Reviewed-by: Joe Damato <joe@...a.to>
[1]: https://www.kernel.org/doc/html/v6.15/process/submitting-patches.html
Powered by blists - more mailing lists