diff options
Diffstat (limited to 'kernel/posix-cpu-timers.c')
-rw-r--r-- | kernel/posix-cpu-timers.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c index 11b91dc0992b..816cd49a5ad9 100644 --- a/kernel/posix-cpu-timers.c +++ b/kernel/posix-cpu-timers.c | |||
@@ -1604,6 +1604,18 @@ static long thread_cpu_nsleep_restart(struct restart_block *restart_block) | |||
1604 | return -EINVAL; | 1604 | return -EINVAL; |
1605 | } | 1605 | } |
1606 | 1606 | ||
1607 | struct k_clock clock_posix_cpu = { | ||
1608 | .clock_getres = posix_cpu_clock_getres, | ||
1609 | .clock_set = posix_cpu_clock_set, | ||
1610 | .clock_get = posix_cpu_clock_get, | ||
1611 | .timer_create = posix_cpu_timer_create, | ||
1612 | .nsleep = posix_cpu_nsleep, | ||
1613 | .nsleep_restart = posix_cpu_nsleep_restart, | ||
1614 | .timer_set = posix_cpu_timer_set, | ||
1615 | .timer_del = posix_cpu_timer_del, | ||
1616 | .timer_get = posix_cpu_timer_get, | ||
1617 | }; | ||
1618 | |||
1607 | static __init int init_posix_cpu_timers(void) | 1619 | static __init int init_posix_cpu_timers(void) |
1608 | { | 1620 | { |
1609 | struct k_clock process = { | 1621 | struct k_clock process = { |