Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234593
b: refs/heads/master
c: cc785ac
h: refs/heads/master
i:
  234591: 524915e
v: v3
  • Loading branch information
Thomas Gleixner committed Feb 2, 2011
1 parent fe43b6c commit aa9dbe8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1976945eeaab5fa461735a6225a82c3cf1e65d62
refs/heads/master: cc785ac22b17ed53e8ff5c1501e422be6d10be3c
10 changes: 10 additions & 0 deletions trunk/kernel/posix-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit aa9dbe8

Please sign in to comment.