- Subject: Re: [RFCv4] timerfd: add TFD_NOTIFY_CLOCK_SET to watch for clock changes
- From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
- Date: Thu, 10 Mar 2011 10:08:18 +0100 (CET)
- Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Alexander Shishkin <virtuoso@xxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Ken MacLeod <ken@xxxxxxxxxxxxxxxx>, Shaun Reich <predator106@xxxxxxxxx>, Alexander Viro <viro@xxxxxxxxxxxxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxx>, Feng Tang <feng.tang@xxxxxxxxx>, Michael Tokarev <mjt@xxxxxxxxxx>, Marcelo Tosatti <mtosatti@xxxxxxxxxx>, John Stultz <johnstul@xxxxxxxxxx>, Chris Friesen <chris.friesen@xxxxxxxxxxx>, "Kirill A. Shutemov" <kirill@xxxxxxxxxxxxx>, Artem Bityutskiy <dedekind1@xxxxxxxxx>, Davide Libenzi <davidel@xxxxxxxxxxxxxxx>, linux-fsdevel@xxxxxxxxxxxxxxx, linux-api@xxxxxxxxxxxxxxx, Michael Kerrisk <mtk.manpages@xxxxxxxxx>
- In-reply-to: <AANLkTinZioShsr3O0Z=xaEQ-S=JBCgs_SS_LdsBnNhZ2@xxxxxxxxxxxxxx>
- References: <1299681411-9227-1-git-send-email-virtuoso@xxxxxxxxx> <20110309162513.5058c824.akpm@xxxxxxxxxxxxxxxxxxxx> <AANLkTinZioShsr3O0Z=xaEQ-S=JBCgs_SS_LdsBnNhZ2@xxxxxxxxxxxxxx>
- User-agent: Alpine 2.00 (LFD 1167 2008-08-23)
On Thu, 10 Mar 2011, Kay Sievers wrote:
> On Thu, Mar 10, 2011 at 01:25, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> > On Wed, Â9 Mar 2011 16:36:51 +0200
> > Alexander Shishkin <virtuoso@xxxxxxxxx> wrote:
> >
> >> Changes since v3:
> >> Â- changed timerfd_settime() semantics (see below)
> >> Changes since v2:
> >> Â- replaced sysfs interface with a syscall
> >> Â- added sysctl/procfs handle to set a limit to the number of users
> >> Â- fixed issues pointed out by Greg.
> >> Changes since v1:
> >> Â- updated against 2.6.36-rc1,
> >> Â- added notification/filtering options,
> >> Â- added Documentation/ABI/sysfs-kernel-time-notify interface description.
>
> > It would be helpful to know if the identified users of this feature
> > actually find it useful and adequate. ÂI guess the most common
> > application is the 1,001 desktop clock widgets. ÂDo you have any
> > feedback from any of the owners of those?
>
> We want it for systemd, to provide cron-like functionality but without
> the need to stupidly wake up every minute and check the system time
> for possible jumps.
>
> It also sounds useful for a generic resume (after system suspend)
> notification for applications, which isn't really possible today.
Note, that we have CLOCK_BOOTTIME pending for .39 which aims at the
same problem. It's basically CLOCK_MONOTONIC adjusted by the time we
were in suspend. So while CLOCK_MONOTONIC timers are not aware of the
time spent in suspend CLOCK_BOOTTIME timers are. The reason for
implementing CLOCK_BOOTTIME was basically the same problem.
Thanks,
tglx
[Home]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]