mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:07:45 +00:00
Kernel: Use a WaitQueue in the SoundBlaster 16 driver
Instead of waking up to check for IRQ's regularly, use a WaitQueue and wake it up in the IRQ handler.
This commit is contained in:
parent
8b129476b1
commit
7126a42d4d
2 changed files with 10 additions and 11 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <Kernel/IRQHandler.h>
|
||||
#include <Kernel/VM/PhysicalAddress.h>
|
||||
#include <Kernel/VM/PhysicalPage.h>
|
||||
#include <Kernel/WaitQueue.h>
|
||||
|
||||
class SB16;
|
||||
|
||||
|
@ -37,6 +38,7 @@ private:
|
|||
u8 dsp_read();
|
||||
|
||||
RefPtr<PhysicalPage> m_dma_buffer_page;
|
||||
bool m_interrupted { false };
|
||||
int m_major_version { 0 };
|
||||
|
||||
WaitQueue m_irq_queue;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue