diff options
author | tjr <tjr@FreeBSD.org> | 2003-01-19 11:28:22 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-01-19 11:28:22 +0000 |
commit | c5c41f4b01e34c1db6bfbdcb4d4440eb4172ea19 (patch) | |
tree | 836e9d18bfe7d2b4cfe7e6f1e5968489fed697db /sys | |
parent | 124e4a4ca38e7ea426abd1799796593a39eebeba (diff) | |
download | FreeBSD-src-c5c41f4b01e34c1db6bfbdcb4d4440eb4172ea19.zip FreeBSD-src-c5c41f4b01e34c1db6bfbdcb4d4440eb4172ea19.tar.gz |
Remove unnecessary locking of Giant around nanotime() in clock_gettime().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_time.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index aaa3890..df0a0cf 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -161,9 +161,7 @@ clock_gettime(struct thread *td, struct clock_gettime_args *uap) if (uap->clock_id != CLOCK_REALTIME) return (EINVAL); - mtx_lock(&Giant); nanotime(&ats); - mtx_unlock(&Giant); return (copyout(&ats, uap->tp, sizeof(ats))); } |