aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJohn Stultz <[email protected]>2011-02-15 18:45:16 +0000
committerJohn Stultz <[email protected]>2011-02-21 20:53:08 +0000
commit70a08cca1227dc31c784ec930099a4417a06e7d0 (patch)
treed813ae86435a3104b66d18ee746d0f3ecc73a14a /net/unix/af_unix.c
parenttime: Extend get_xtime_and_monotonic_offset() to also return sleep (diff)
downloadkernel-70a08cca1227dc31c784ec930099a4417a06e7d0.tar.gz
kernel-70a08cca1227dc31c784ec930099a4417a06e7d0.zip
timers: Add CLOCK_BOOTTIME hrtimer base
CLOCK_MONOTONIC stops while the system is in suspend. This is because to applications system suspend is invisible. However, there is a growing set of applications that are wanting to be suspend-aware, but do not want to deal with the complications of CLOCK_REALTIME (which might jump around if settimeofday is called). For these applications, I propose a new clockid: CLOCK_BOOTTIME. CLOCK_BOOTTIME is idential to CLOCK_MONOTONIC, except it also includes any time spent in suspend. This patch add hrtimer base for CLOCK_BOOTTIME, using get_monotonic_boottime/ktime_get_boottime, to allow in kernel users to set timers against. CC: Jamie Lokier <[email protected]> CC: Thomas Gleixner <[email protected]> CC: Alexander Shishkin <[email protected]> CC: Arve Hjønnevåg <[email protected]> Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions