Kernel: Lock::unlock_if_locked() should never donate to holder.

Since we're not interested in taking the lock if it's already held,
there's no need to donate the remainder of our time slice to the holder.
This commit is contained in:
Andreas Kling 2019-04-17 12:37:22 +02:00
parent 18ef6b111b
commit 6bb0dbe8bf
Notes: sideshowbarker 2024-07-19 14:40:46 +09:00

View File

@ -113,7 +113,6 @@ inline bool Lock::unlock_if_locked()
m_lock = 0;
return true;
}
Scheduler::donate_to(m_holder, m_name);
}
}