summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-09-05 10:02:03 -0700
committerAndreas Kling <kling@serenityos.org>2021-09-05 20:46:02 +0200
commitbb58a4d94394ae19e0b850b15cfb105c91a1ee7b (patch)
tree95e33e16bd0685ff3a7e5f3c287be64cea0f7532 /Documentation
parent5905d2e9e9380f6c4d0fc370ba8271371e87e1d3 (diff)
downloadserenity-bb58a4d94394ae19e0b850b15cfb105c91a1ee7b.zip
Kernel: Make all Spinlocks use u8 for storage, remove template
The default template argument is only used in one place, and it looks like it was probably just an oversight. The rest of the Kernel code all uses u8 as the type. So lets make that the default and remove the unused template argument, as there doesn't seem to be a reason to allow the size to be customizable.
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/Kernel/AHCILocking.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/Kernel/AHCILocking.md b/Documentation/Kernel/AHCILocking.md
index 6986d9582c..53f9d68f2f 100644
--- a/Documentation/Kernel/AHCILocking.md
+++ b/Documentation/Kernel/AHCILocking.md
@@ -18,7 +18,7 @@ return true;
This lock doesn't disable interrupts at all, and if it is already in use, the scheduler will simply yield away from that section until it tries to lock it again.
-### Hard lock - `SpinLock<u8>`
+### Hard lock - `Spinlock`
A hard lock is essentially a lock that is used in critical sections in the kernel. We use it with a `ScopedSpinLock` class, to create a scoped locking of that lock: