diff options
author | Ian Moffett <ian@osmora.org> | 2025-08-12 22:06:41 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-08-12 22:08:22 -0400 |
commit | 49e744c65c8e3d2f72357f865dbd1908796950cf (patch) | |
tree | 61e51cc9a793a14a31c08334a10f5281fb8b03f5 /sys/include | |
parent | 5db972de06d6aa805c2dd6e8b1789b659ae79fcd (diff) |
kernel: proc: Improve handling of 'nswitch'
- Extend 'nswitch' to 64-bits as it increments fast
- Ensure writes to 'nswitch' are atomic
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/include/sys/sched.h b/sys/include/sys/sched.h index 19ceb7e..8b0ba02 100644 --- a/sys/include/sys/sched.h +++ b/sys/include/sys/sched.h @@ -42,7 +42,7 @@ * @idle: Number of milliseconds idle */ struct sched_cpu { - uint32_t nswitch; + uint64_t nswitch; }; /* |