Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234592
b: refs/heads/master
c: 1976945
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Feb 2, 2011
1 parent 524915e commit fe43b6c
Show file tree
Hide file tree
Showing 3 changed files with 15 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: 2fd1f04089cb657c5d6c484b280ec4d3398aa157
refs/heads/master: 1976945eeaab5fa461735a6225a82c3cf1e65d62
2 changes: 2 additions & 0 deletions trunk/include/linux/posix-timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ struct k_clock {
struct itimerspec * cur_setting);
};

extern struct k_clock clock_posix_cpu;

void register_posix_clock(const clockid_t clock_id, struct k_clock *new_clock);

/* error handlers for timer_create, nanosleep and settime */
Expand Down
12 changes: 12 additions & 0 deletions trunk/kernel/posix-cpu-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,18 @@ static long thread_cpu_nsleep_restart(struct restart_block *restart_block)
return -EINVAL;
}

struct k_clock clock_posix_cpu = {
.clock_getres = posix_cpu_clock_getres,
.clock_set = posix_cpu_clock_set,
.clock_get = posix_cpu_clock_get,
.timer_create = posix_cpu_timer_create,
.nsleep = posix_cpu_nsleep,
.nsleep_restart = posix_cpu_nsleep_restart,
.timer_set = posix_cpu_timer_set,
.timer_del = posix_cpu_timer_del,
.timer_get = posix_cpu_timer_get,
};

static __init int init_posix_cpu_timers(void)
{
struct k_clock process = {
Expand Down

0 comments on commit fe43b6c

Please sign in to comment.