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

From
Thomas Gleixner <hidden>
Date
2024-10-29 16:08:59
Also in
linux-bluetooth, lkml
Reply to
Easwar Hariharan, 2024-10-28
On Mon, Oct 28 2024 at 19:11, Easwar Hariharan wrote:
quoted hunk ↗ jump to hunk
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
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