Remove unnecessary locking of Giant around nanotime() in clock_gettime().
This commit is contained in:
parent
3feaa592f3
commit
3ff0b1753c
@ -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)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user