aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/posix-timers.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/posix-timers.c')
-rw-r--r--kernel/posix-timers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c
index af936fd37140..44fcff131b38 100644
--- a/kernel/posix-timers.c
+++ b/kernel/posix-timers.c
@@ -41,6 +41,7 @@
41#include <linux/init.h> 41#include <linux/init.h>
42#include <linux/compiler.h> 42#include <linux/compiler.h>
43#include <linux/idr.h> 43#include <linux/idr.h>
44#include <linux/posix-clock.h>
44#include <linux/posix-timers.h> 45#include <linux/posix-timers.h>
45#include <linux/syscalls.h> 46#include <linux/syscalls.h>
46#include <linux/wait.h> 47#include <linux/wait.h>
@@ -489,7 +490,8 @@ static void release_posix_timer(struct k_itimer *tmr, int it_id_set)
489static struct k_clock *clockid_to_kclock(const clockid_t id) 490static struct k_clock *clockid_to_kclock(const clockid_t id)
490{ 491{
491 if (id < 0) 492 if (id < 0)
492 return (id & CLOCKFD_MASK) == CLOCKFD ? NULL : &clock_posix_cpu; 493 return (id & CLOCKFD_MASK) == CLOCKFD ?
494 &clock_posix_dynamic : &clock_posix_cpu;
493 495
494 if (id >= MAX_CLOCKS || !posix_clocks[id].clock_getres) 496 if (id >= MAX_CLOCKS || !posix_clocks[id].clock_getres)
495 return NULL; 497 return NULL;