RE: [PATCH v2 1/2] jiffies: Define secs_to_jiffies()

From
Thomas Gleixner <hidden>
Date
2024-11-06 23:55:06
Also in
linux-bluetooth, lkml
Reply to
David Laight, 2024-11-06
On Wed, Nov 06 2024 at 22:19, David Laight wrote:
From: Thomas Gleixner
quoted
Still the macro should be documented.
I was wondering if it really had any purpose at all.
It just obfuscates code, doesn't even make it smaller.
What is obfuscated here?

secs_to_jiffies() is clearly describing what this is about, while 5 * HZ
is not. Nothing in a driver has to care about the underlying conversion
of a time delta expressed in SI units to a jiffies based time delta.

Thanks,

        tglx
Thread (10 messages) 10 messages, 5 authors, last reply 2024-11-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help