Kernel: Use spinlocks instead of mutexes for RWLock

All the operations are super fast, just checking or changing few
integers, there is no need for a yielding mutex :^)
This commit is contained in:
2026-05-21 02:16:41 +03:00
parent 81d8ab3d79
commit 5c94c30e1b
2 changed files with 16 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
#include <BAN/ScopeGuard.h>
#include <kernel/BootInfo.h>
#include <kernel/Lock/LockGuard.h>
#include <kernel/Memory/Heap.h>
#include <kernel/Memory/PageTable.h>
#include <kernel/Storage/DiskCache.h>