diff --git a/[refs] b/[refs] index 467248e712f9..8200e87f95c3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1976945eeaab5fa461735a6225a82c3cf1e65d62 +refs/heads/master: cc785ac22b17ed53e8ff5c1501e422be6d10be3c diff --git a/trunk/kernel/posix-timers.c b/trunk/kernel/posix-timers.c index e7d26afd8ee5..14b0a70ffb1e 100644 --- a/trunk/kernel/posix-timers.c +++ b/trunk/kernel/posix-timers.c @@ -531,6 +531,16 @@ static void release_posix_timer(struct k_itimer *tmr, int it_id_set) kmem_cache_free(posix_timers_cache, tmr); } +static struct k_clock *clockid_to_kclock(const clockid_t id) +{ + if (id < 0) + return &clock_posix_cpu; + + if (id >= MAX_CLOCKS || !posix_clocks[id].clock_getres) + return NULL; + return &posix_clocks[id]; +} + /* Create a POSIX.1b interval timer. */ SYSCALL_DEFINE3(timer_create, const clockid_t, which_clock,