summaryrefslogtreecommitdiff
path: root/Kernel/Graphics/Intel
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 /Kernel/Graphics/Intel
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 'Kernel/Graphics/Intel')
-rw-r--r--Kernel/Graphics/Intel/NativeGraphicsAdapter.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Graphics/Intel/NativeGraphicsAdapter.h b/Kernel/Graphics/Intel/NativeGraphicsAdapter.h
index b4a1a85253..6db51e8005 100644
--- a/Kernel/Graphics/Intel/NativeGraphicsAdapter.h
+++ b/Kernel/Graphics/Intel/NativeGraphicsAdapter.h
@@ -161,9 +161,9 @@ private:
Optional<PLLSettings> create_pll_settings(u64 target_frequency, u64 reference_clock, const PLLMaxSettings&);
- Spinlock<u8> m_control_lock;
- Spinlock<u8> m_modeset_lock;
- mutable Spinlock<u8> m_registers_lock;
+ Spinlock m_control_lock;
+ Spinlock m_modeset_lock;
+ mutable Spinlock m_registers_lock;
Graphics::VideoInfoBlock m_crt_edid;
const PhysicalAddress m_registers;