summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-01-19 11:28:22 +0000
committertjr <tjr@FreeBSD.org>2003-01-19 11:28:22 +0000
commitc5c41f4b01e34c1db6bfbdcb4d4440eb4172ea19 (patch)
tree836e9d18bfe7d2b4cfe7e6f1e5968489fed697db /sys
parent124e4a4ca38e7ea426abd1799796593a39eebeba (diff)
downloadFreeBSD-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.c2
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)));
}
OpenPOWER on IntegriCloud