Remove unnecessary locking of Giant around nanotime() in clock_gettime().

This commit is contained in:
tjr 2003-01-19 11:28:22 +00:00
parent 3feaa592f3
commit 3ff0b1753c

View File

@ -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)));
}