aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/time.h
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2012-05-03 12:43:40 -0700
committerJohn Stultz <john.stultz@linaro.org>2013-03-22 16:19:59 -0700
commit1ff3c9677bff7e468e0c487d0ffefe4e901d33f4 (patch)
tree202cef5857654e15eb471c2216f37f995f1c6e2f /include/uapi/linux/time.h
parenttimekeeping: Move TAI managment into timekeeping core from ntp (diff)
downloadlinux-dev-1ff3c9677bff7e468e0c487d0ffefe4e901d33f4.tar.xz
linux-dev-1ff3c9677bff7e468e0c487d0ffefe4e901d33f4.zip
timekeeping: Add CLOCK_TAI clockid
This add a CLOCK_TAI clockid and the needed accessors. CC: Thomas Gleixner <tglx@linutronix.de> CC: Eric Dumazet <eric.dumazet@gmail.com> CC: Richard Cochran <richardcochran@gmail.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include/uapi/linux/time.h')
-rw-r--r--include/uapi/linux/time.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/uapi/linux/time.h b/include/uapi/linux/time.h
index 0d3c0edc3eda..e75e1b6ff27f 100644
--- a/include/uapi/linux/time.h
+++ b/include/uapi/linux/time.h
@@ -54,11 +54,9 @@ struct itimerval {
#define CLOCK_BOOTTIME 7
#define CLOCK_REALTIME_ALARM 8
#define CLOCK_BOOTTIME_ALARM 9
+#define CLOCK_SGI_CYCLE 10 /* Hardware specific */
+#define CLOCK_TAI 11
-/*
- * The IDs of various hardware clocks:
- */
-#define CLOCK_SGI_CYCLE 10
#define MAX_CLOCKS 16
#define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
#define CLOCKS_MONO CLOCK_MONOTONIC