Re: [PATCH] [RFC] timerfd: add TFD_NOTIFY_CLOCK_SET to watch for clock changes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: john stultz
Date: Wednesday, December 1, 2010 - 6:55 pm

On Thu, 2010-12-02 at 01:18 +0000, Jamie Lokier wrote:

Like I mentioned earlier, CLOCK_MONOTONIC_RAW and CLOCK_MONOTONIC are
tightly tied, so anything using CLOCK_MONOTONIC_RAW would break.

It might be possible to change both, but I still think such a change
would be bad.


So just to clarify here, by this do you mean that there's ~4 seconds
delay between the resume event and when userland apps start to run (or
possibly some of that accumulating between the app freeze and the
timekeeping suspend) ?

Or are you seeing CLOCK_MONOTONIC jump 4 seconds out of sync with
CLOCK_REALTIME? 

It should be the delta between CLOCK_MONOTONIC and CLOCK_REALTIME prior
to suspend should be that same delta + suspend time after resume. If
that's not the case, something may be broken.

thanks
-john

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] [RFC] timerfd: add TFD_NOTIFY_CLOCK_SET to watch f ..., Alexander Shishkin, (Tue Nov 23, 10:22 am)
Re: [PATCH] [RFC] timerfd: add TFD_NOTIFY_CLOCK_SET to wat ..., Lennart Poettering, (Tue Nov 23, 3:43 pm)
Re: [PATCH] [RFC] timerfd: add TFD_NOTIFY_CLOCK_SET to wat ..., Alexander Shishkin, (Tue Nov 30, 5:33 pm)
Re: [PATCH] [RFC] timerfd: add TFD_NOTIFY_CLOCK_SET to wat ..., john stultz, (Wed Dec 1, 6:55 pm)