1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:48:12 +00:00

Kernel: When a lock is busy, donate remaining process ticks to lock holder.

Since we know who's holding the lock, and we're gonna have to yield anyway,
we can just ask the scheduler to donate any remaining ticks to that process.
This commit is contained in:
Andreas Kling 2019-02-07 11:12:23 +01:00
parent 4df92709c8
commit 5582a0a254
15 changed files with 51 additions and 15 deletions

View file

@ -39,6 +39,7 @@ RetainPtr<IDEDiskDevice> IDEDiskDevice::create()
IDEDiskDevice::IDEDiskDevice()
: IRQHandler(IRQ_FIXED_DISK)
, m_lock("IDEDiskDevice")
{
initialize();
}