diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index 73c1fbeeeeb..1236c31595c 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -64,7 +64,7 @@ enum class NeedsBigProcessLock { S(munmap, NeedsBigProcessLock::Yes) \ S(get_dir_entries, NeedsBigProcessLock::Yes) \ S(getcwd, NeedsBigProcessLock::Yes) \ - S(gettimeofday, NeedsBigProcessLock::Yes) \ + S(gettimeofday, NeedsBigProcessLock::No) \ S(gethostname, NeedsBigProcessLock::No) \ S(sethostname, NeedsBigProcessLock::No) \ S(chdir, NeedsBigProcessLock::Yes) \ diff --git a/Kernel/Syscalls/clock.cpp b/Kernel/Syscalls/clock.cpp index 82e6779bcd3..19b0dbd855f 100644 --- a/Kernel/Syscalls/clock.cpp +++ b/Kernel/Syscalls/clock.cpp @@ -118,7 +118,7 @@ KResultOr Process::sys$adjtime(Userspace user_delta, Us KResultOr Process::sys$gettimeofday(Userspace user_tv) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); + VERIFY_NO_PROCESS_BIG_LOCK(this); REQUIRE_PROMISE(stdio); auto tv = kgettimeofday().to_timeval(); if (!copy_to_user(user_tv, &tv))