Skip to content

Introduce CLOCK_BOOTTIME

John Stultz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hrtimers: extend hrtimer base code to handle more then 2 clockidsinclude/linux/hrtimer.h kernel/hrtimer.c+32 -140 replies
2/5time: Introduce get_monotonic_boottime and ktime_get_boottimeinclude/linux/hrtimer.h include/linux/time.h kernel/time/timekeeping.c+52 -10 replies
3/5time: Extend get_xtime_and_monotonic_offset() to also return sleepinclude/linux/time.h kernel/hrtimer.c kernel/time/timekeeping.c+11 -62 replies
4/5timers: Add CLOCK_BOOTTIME hrtimer baseinclude/linux/hrtimer.h include/linux/time.h kernel/hrtimer.c+14 -40 replies
5/5timers: Export CLOCK_BOOTTIME via the posix timers interfacekernel/posix-timers.c+20 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Introduce CLOCK_BOOTTIME

This patch set (applies against tip/timers/core) extends the hrtimer, timekeeping, and posix-timer code to support a new
clockid: CLOCK_BOOTTIME.

CLOCK_BOOTTIME is identical to CLOCK_MONOTONIC, except it also includes any time spent in suspend (as currently measured by read_persistent_clock()). This allows applications to get a suspend aware monotonic clock.

Thomas, I've included your suggestions from the last round. Does this look like something you could queue for 2.6.39?

thanks
-john

CC Jamie Lokier <[email protected]>
CC Thomas Gleixner <[email protected]>
CC Alexander Shishkin <[email protected]>
CC Arve HjønnevÃ¥g <[email protected]>

John Stultz (5):
hrtimers: extend hrtimer base code to handle more then 2 clockids
time: Introduce get_monotonic_boottime and ktime_get_boottime
time: Extend get_xtime_and_monotonic_offset() to also return sleep
timers: Add CLOCK_BOOTTIME hrtimer base
timers: Export CLOCK_BOOTTIME via the posix timers interface

 include/linux/hrtimer.h   |    8 +++++-
 include/linux/time.h      |    5 +++-
 kernel/hrtimer.c          |   63 ++++++++++++++++++++++++++++++--------------
 kernel/posix-timers.c     |   21 ++++++++++++++-
 kernel/time/timekeeping.c |   56 ++++++++++++++++++++++++++++++++++++++-
 5 files changed, 128 insertions(+), 25 deletions(-)
Signature · 1 line
1.7.3.2.146.gca209