mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Kernel: Disable big process lock for sys$clock_gettime()
This syscall doesn't touch any intra-process shared resources and reads the time via the atomic TimeManagement::current_time, so it doesn't need to hold any lock.
This commit is contained in:
parent
1a08694dfc
commit
fbd848e6eb
Notes:
sideshowbarker
2024-07-18 07:23:36 +09:00
Author: https://github.com/IdanHo
Commit: fbd848e6eb
Pull-request: https://github.com/SerenityOS/serenity/pull/9236
Reviewed-by: https://github.com/tomuta ✅
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ namespace Kernel {
|
|||
|
||||
KResultOr<FlatPtr> Process::sys$clock_gettime(clockid_t clock_id, Userspace<timespec*> user_ts)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
REQUIRE_PROMISE(stdio);
|
||||
|
||||
if (!TimeManagement::is_valid_clock_id(clock_id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue