diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-02-23 10:18:31 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-02-23 10:18:31 +0000 |
| commit | 8f5ef1a9fa39dfe04fc975d782e0cb62087c7cf0 (patch) | |
| tree | 7e6335ead53af0469220f3f9e4b93a9cfa4dc53f /sys/kern/kern_time.c | |
| parent | e29632c9e12dabb912a35bba6e8a86646d38cf75 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_time.c')
| -rw-r--r-- | sys/kern/kern_time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index 4a8ef927b97b..7dfa098a5815 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -160,8 +160,9 @@ clock_gettime(struct thread *td, struct clock_gettime_args *uap) struct timespec ats; if (uap->clock_id != CLOCK_REALTIME) - return (EINVAL); - nanotime(&ats); + nanotime(&ats); + else if (uap->clock_id != CLOCK_MONOTONIC) + nanouptime(&ats); return (copyout(&ats, uap->tp, sizeof(ats))); } |
