1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 16:24:59 +00:00

Kernel: Disable big process lock for sys$gettimeofday

This syscall doesn't touch any intra-process shared resources and only
accesses the time via the atomic TimeManagement::now so there's no need
to hold the big lock.
This commit is contained in:
Idan Horowitz 2021-08-06 14:58:28 +03:00 committed by Andreas Kling
parent 3ba2449058
commit d40038a04f
2 changed files with 2 additions and 2 deletions

View file

@ -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) \