Kernel: Disable big process lock for sys$clock_nanosleep

This syscall doesn't touch any intra-process shared resources and only
accesses the time via the atomic TimeManagement::current_time so there's
no need to hold the big lock.
This commit is contained in:
Idan Horowitz 2021-08-06 14:54:34 +03:00 committed by Andreas Kling
commit 3ba2449058
Notes: sideshowbarker 2024-07-18 07:23:33 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ KResultOr<FlatPtr> Process::sys$clock_settime(clockid_t clock_id, Userspace<cons
KResultOr<FlatPtr> Process::sys$clock_nanosleep(Userspace<const Syscall::SC_clock_nanosleep_params*> user_params)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
VERIFY_NO_PROCESS_BIG_LOCK(this);
REQUIRE_PROMISE(stdio);
Syscall::SC_clock_nanosleep_params params;