RE: RFC: better timer interface

From
David Laight <hidden>
Date
2017-05-23 11:37:13
Also in
linux-s390, lkml
Reply to
Thomas Gleixner, 2017-05-21
From: Thomas Gleixner
Sent: 21 May 2017 19:15
...
quoted
timer_start(timer, ms, abs)
=20
I'm not even sure, whether we need absolute timer wheel timers at
all, because most use cases are relative to now.
Posix requires absolute timers for some userspace calls
(annoying because the code often wants relative).

OTOH how much conditional code is there for the 'abs' argument.
And is there any code that doesn't pass a constant?

Certainly worth a separate timer_start_abs(timer, wall_time)
function since you can't correctly map a wall_time timer
to a jiffies one.

	David
Thread (39 messages) 39 messages, 7 authors, last reply 2017-05-23
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