summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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