[PATCH 0/5] Introduce CLOCK_BOOTTIME

From: John Stultz
Date: Tue Feb 15 2011 - 23:20:32 EST


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 <jamie@xxxxxxxxxxxxx>
CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CC: Alexander Shishkin <virtuoso@xxxxxxxxx>
CC: Arve HjÃÂnnevÃÂg <arve@xxxxxxxxxxx>

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(-)

--
1.7.3.2.146.gca209

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/