mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
Kernel: Mark sys$clock_settime() as not needing the big log
This syscall ends up disabling interrupts while changing the time, and the clock is a global resource anyway, so preventing threads in the same process from running wouldn't solve anything.
This commit is contained in:
parent
55814f6e0e
commit
4306422f29
Notes:
sideshowbarker
2024-07-17 14:29:09 +09:00
Author: https://github.com/awesomekling
Commit: 4306422f29
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ enum class NeedsBigProcessLock {
|
|||
S(chown, NeedsBigProcessLock::Yes) \
|
||||
S(clock_gettime, NeedsBigProcessLock::No) \
|
||||
S(clock_nanosleep, NeedsBigProcessLock::No) \
|
||||
S(clock_settime, NeedsBigProcessLock::Yes) \
|
||||
S(clock_settime, NeedsBigProcessLock::No) \
|
||||
S(close, NeedsBigProcessLock::Yes) \
|
||||
S(connect, NeedsBigProcessLock::Yes) \
|
||||
S(create_inode_watcher, NeedsBigProcessLock::Yes) \
|
||||
|
|
|
@ -35,7 +35,7 @@ ErrorOr<FlatPtr> Process::sys$clock_gettime(clockid_t clock_id, Userspace<timesp
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$clock_settime(clockid_t clock_id, Userspace<timespec const*> user_ts)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
TRY(require_promise(Pledge::settime));
|
||||
|
||||
if (!is_superuser())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue