mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
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:
parent
4306422f29
commit
12b612ab14
Notes:
sideshowbarker
2024-07-17 14:29:07 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/12b612ab14
@ -42,7 +42,7 @@ enum class NeedsBigProcessLock {
|
||||
#define ENUMERATE_SYSCALLS(S) \
|
||||
S(accept4, NeedsBigProcessLock::Yes) \
|
||||
S(access, NeedsBigProcessLock::Yes) \
|
||||
S(adjtime, NeedsBigProcessLock::Yes) \
|
||||
S(adjtime, NeedsBigProcessLock::No) \
|
||||
S(alarm, NeedsBigProcessLock::Yes) \
|
||||
S(allocate_tls, NeedsBigProcessLock::Yes) \
|
||||
S(anon_create, NeedsBigProcessLock::No) \
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user