timerfd: support CLOCK_BOOTTIME clock
Subsystems (2)
PATCH 1/1 timerfd: support CLOCK_BOOTTIME clock
Add CLOCK_BOOTTIME support to timerfd
Signed-off-by Greg Hackmann <[email protected]>
--- fs/timerfd.c | 1 + 1 file changed, 1 insertion(+)
fs/timerfd.c +1 -0
@@ -317,6 +317,7 @@ SYSCALL_DEFINE2(timerfd_create, int, clockid, int, flags) (clockid !=CLOCK_MONOTONIC && clockid !=CLOCK_REALTIME && clockid !=CLOCK_REALTIME_ALARM && + clockid !=CLOCK_BOOTTIME && clockid != CLOCK_BOOTTIME_ALARM)) return -EINVAL;
Signature · 1 line
1.8.5.1
Quoted 12 lines · Greg Hackmann
Add
CLOCK_BOOTTIMEsupport to timerfdSigned-off-by Greg Hackmann <[email protected]>--- fs/timerfd.c | 1 + 1 file changed, 1 insertion(+)fs/timerfd.c +0
-0
fs/timerfd.c SYSCALL_DEFINE2(timerfd_create, int, clockid, int, flags) · line 323
Quoted 7 lines
fs/timerfd.c +1
-0@@ -317,6 +317,7 @@ SYSCALL_DEFINE2(timerfd_create, int, clockid, int, flags) (clockid !=CLOCK_MONOTONIC && clockid !=CLOCK_REALTIME && clockid !=CLOCK_REALTIME_ALARM && + clockid !=CLOCK_BOOTTIME && clockid != CLOCK_BOOTTIME_ALARM)) return -EINVAL;
Thanks! I've already sent out my 3.14 queue to Thomas, but I'll queue this for 3.15.
-john