X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=kernel%2Fposix-timers.c;h=9cbb5d1be06f7420005bdf32538777deb844af03;hb=d68041cc9fde550fe6b6a6de1d7a110daff3cb60;hp=ac6dc8744429f986f2f6c6b628513b2524316374;hpb=ca9ba4471c1203bb6e759b76e83167fec54fe590;p=powerpc.git diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c index ac6dc87444..9cbb5d1be0 100644 --- a/kernel/posix-timers.c +++ b/kernel/posix-timers.c @@ -1,5 +1,5 @@ /* - * linux/kernel/posix_timers.c + * linux/kernel/posix-timers.c * * * 2002-10-15 Posix Clocks & timers @@ -973,3 +973,24 @@ sys_clock_nanosleep(const clockid_t which_clock, int flags, return CLOCK_DISPATCH(which_clock, nsleep, (which_clock, flags, &t, rmtp)); } + +/* + * nanosleep_restart for monotonic and realtime clocks + */ +static int common_nsleep_restart(struct restart_block *restart_block) +{ + return hrtimer_nanosleep_restart(restart_block); +} + +/* + * This will restart clock_nanosleep. This is required only by + * compat_clock_nanosleep_restart for now. + */ +long +clock_nanosleep_restart(struct restart_block *restart_block) +{ + clockid_t which_clock = restart_block->arg0; + + return CLOCK_DISPATCH(which_clock, nsleep_restart, + (restart_block)); +}