* behavior of hrtimers scheduled to expire in the past
@ 2008-10-21 0:24 Daniel Rosenthal
2008-10-21 8:09 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Rosenthal @ 2008-10-21 0:24 UTC (permalink / raw)
To: LKML, Ingo Molnar, Thomas Gleixner
What is the intended behavior for an hrtimer that is scheduled to
expire in the past? I assumed that it would simply be scheduled to
expire at the nearest available time in the future, but I wrote some
scheduler code and it looks like hrtimers don't go off at all if they
are not scheduled to go off at a time which is after rq->clock. Is
this the intended behavior or is this a bug?
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: behavior of hrtimers scheduled to expire in the past
2008-10-21 0:24 behavior of hrtimers scheduled to expire in the past Daniel Rosenthal
@ 2008-10-21 8:09 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2008-10-21 8:09 UTC (permalink / raw)
To: Daniel Rosenthal; +Cc: LKML, Ingo Molnar
On Mon, 20 Oct 2008, Daniel Rosenthal wrote:
> What is the intended behavior for an hrtimer that is scheduled to
> expire in the past? I assumed that it would simply be scheduled to
> expire at the nearest available time in the future, but I wrote some
> scheduler code and it looks like hrtimers don't go off at all if they
> are not scheduled to go off at a time which is after rq->clock. Is
> this the intended behavior or is this a bug?
That depends on the callback mode of the hrtimer. The standard ones
are scheduled to the softirq when they are already expired, but those
which are not allowed to run their callback in softirq context are
_not_ enqueued and the caller has to check, whether the timer is
active/enqueued after starting it.
Thanks,
tglx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-21 8:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-21 0:24 behavior of hrtimers scheduled to expire in the past Daniel Rosenthal
2008-10-21 8:09 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome