mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
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.
This commit is contained in:
parent
5905d2e9e9
commit
bb58a4d943
38 changed files with 56 additions and 58 deletions
|
@ -40,7 +40,7 @@ public:
|
|||
bool framebuffer_devices_allowed() const { return m_framebuffer_devices_allowed; }
|
||||
bool framebuffer_devices_exist() const;
|
||||
|
||||
Spinlock<u8>& main_vga_lock() { return m_main_vga_lock; }
|
||||
Spinlock& main_vga_lock() { return m_main_vga_lock; }
|
||||
RefPtr<Graphics::Console> console() const { return m_console; }
|
||||
|
||||
void deactivate_graphical_mode();
|
||||
|
@ -56,7 +56,7 @@ private:
|
|||
unsigned m_current_minor_number { 0 };
|
||||
const bool m_framebuffer_devices_allowed;
|
||||
|
||||
Spinlock<u8> m_main_vga_lock;
|
||||
Spinlock m_main_vga_lock;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue