Add CLOCK_BOOTTIME support to timerfd
Signed-off-by: Greg Hackmann <[email protected]>
---
fs/timerfd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/timerfd.c b/fs/timerfd.c
index 9293121..0013142 100644
--- a/fs/timerfd.c
+++ b/fs/timerfd.c
@@ -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;
--
1.8.5.1
On 01/08/2014 10:57 AM, Greg Hackmann wrote:
> Add CLOCK_BOOTTIME support to timerfd
>
> Signed-off-by: Greg Hackmann <[email protected]>
> ---
> fs/timerfd.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/timerfd.c b/fs/timerfd.c
> index 9293121..0013142 100644
> --- a/fs/timerfd.c
> +++ b/fs/timerfd.c
> @@ -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