Skip to contentSkip to conversation

timerfd: support CLOCK_BOOTTIME clock

PATCH In review Greg Hackmann 2 participants 2 messages Jan 8, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 timerfd: support CLOCK_BOOTTIME clock

Add CLOCK_BOOTTIME support to timerfd

---
 fs/timerfd.c | 1 +
 1 file changed, 1 insertion(+)
fs/timerfd.c +1 -0
index 9293121..0013142 100644
@@ -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
#1 lore raw
Quoted 12 lines · Greg Hackmann

Add CLOCK_BOOTTIME support to timerfd

---
 fs/timerfd.c | 1 +
 1 file changed, 1 insertion(+)
fs/timerfd.c +0 -0
index 9293121..0013142 100644

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