1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:07:34 +00:00

Kernel: Make sys$times not use the big lock

...and also make the Process tick counters clock_t instead of u32.
It seems harmless to get interrupted in the middle of reading these
counters and reporting slightly fewer ticks in some category.
This commit is contained in:
Andreas Kling 2023-04-03 17:29:14 +02:00
parent b98f537f11
commit 5bc7882b68
3 changed files with 9 additions and 7 deletions

View file

@ -465,11 +465,10 @@ public:
const TTY* tty() const { return m_tty; }
void set_tty(TTY*);
u32 m_ticks_in_user { 0 };
u32 m_ticks_in_kernel { 0 };
u32 m_ticks_in_user_for_dead_children { 0 };
u32 m_ticks_in_kernel_for_dead_children { 0 };
clock_t m_ticks_in_user { 0 };
clock_t m_ticks_in_kernel { 0 };
clock_t m_ticks_in_user_for_dead_children { 0 };
clock_t m_ticks_in_kernel_for_dead_children { 0 };
NonnullRefPtr<Custody> current_directory();
RefPtr<Custody> executable();