Kernel: Mark sys$adjtime() as not needing the big lock

This syscall works on global kernel state and so doesn't need protection
from threads in the same process.
This commit is contained in:
Andreas Kling 2022-04-04 00:39:43 +02:00
commit 12b612ab14
Notes: sideshowbarker 2024-07-17 14:29:07 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ ErrorOr<FlatPtr> Process::sys$clock_nanosleep(Userspace<Syscall::SC_clock_nanosl
ErrorOr<FlatPtr> Process::sys$adjtime(Userspace<timeval const*> user_delta, Userspace<timeval*> user_old_delta)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
VERIFY_NO_PROCESS_BIG_LOCK(this);
if (user_old_delta) {
timespec old_delta_ts = TimeManagement::the().remaining_epoch_time_adjustment();
timeval old_delta;