diff options
Diffstat (limited to 'sys/kern/kern_time.c')
| -rw-r--r-- | sys/kern/kern_time.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index 38a788acfb9b..e08a765e4c05 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -65,8 +65,6 @@ int tz_dsttime; * timers when they expire. */ -static int nanosleep1(struct thread *td, struct timespec *rqt, - struct timespec *rmt); static int settime(struct thread *, struct timeval *); static void timevalfix(struct timeval *); static void no_lease_updatetime(int); @@ -261,8 +259,8 @@ clock_getres(struct thread *td, struct clock_getres_args *uap) static int nanowait; -static int -nanosleep1(struct thread *td, struct timespec *rqt, struct timespec *rmt) +int +kern_nanosleep(struct thread *td, struct timespec *rqt, struct timespec *rmt) { struct timespec ts, ts2, ts3; struct timeval tv; @@ -322,7 +320,7 @@ nanosleep(struct thread *td, struct nanosleep_args *uap) if (uap->rmtp && !useracc((caddr_t)uap->rmtp, sizeof(rmt), VM_PROT_WRITE)) return (EFAULT); - error = nanosleep1(td, &rqt, &rmt); + error = kern_nanosleep(td, &rqt, &rmt); if (error && uap->rmtp) { int error2; |
