[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87wmhq28o6.ffs@tglx>
Date: Tue, 29 Oct 2024 17:08:57 +0100
From: Thomas Gleixner <tglx@...utronix.de>
To: Easwar Hariharan <eahariha@...ux.microsoft.com>, "K. Y. Srinivasan"
<kys@...rosoft.com>, Haiyang Zhang <haiyangz@...rosoft.com>, Wei Liu
<wei.liu@...nel.org>, Dexuan Cui <decui@...rosoft.com>,
linux-hyperv@...r.kernel.org, Anna-Maria Behnsen
<anna-maria@...utronix.de>, Geert Uytterhoeven <geert@...ux-m68k.org>,
Marcel Holtmann <marcel@...tmann.org>, Johan Hedberg
<johan.hedberg@...il.com>, Luiz Augusto von Dentz <luiz.dentz@...il.com>,
linux-bluetooth@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Michael Kelley <mhklinux@...look.com>, Easwar Hariharan
<eahariha@...ux.microsoft.com>
Subject: Re: [PATCH v2 1/2] jiffies: Define secs_to_jiffies()
On Mon, Oct 28 2024 at 19:11, Easwar Hariharan wrote:
> diff --git a/include/linux/jiffies.h b/include/linux/jiffies.h
> index 1220f0fbe5bf..e5256bb5f851 100644
> --- a/include/linux/jiffies.h
> +++ b/include/linux/jiffies.h
> @@ -526,6 +526,8 @@ static __always_inline unsigned long msecs_to_jiffies(const unsigned int m)
> }
> }
>
> +#define secs_to_jiffies(_secs) ((_secs) * HZ)
Can you please make that a static inline, as there is no need for macro
magic like in the other conversions, and add a kernel doc comment which
documents this?
Thanks,
tglx
Powered by blists - more mailing lists