summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-17 12:37:22 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-17 12:37:44 +0200
commit6bb0dbe8bf5b4d6d0dfac0183995cbf5274aa4d3 (patch)
tree12c75312aab17a3a779ac97b9c4bd93f8e9219ae /Kernel
parent18ef6b111b61c96f316349680142c4e070cbe817 (diff)
downloadserenity-6bb0dbe8bf5b4d6d0dfac0183995cbf5274aa4d3.zip
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.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Lock.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Kernel/Lock.h b/Kernel/Lock.h
index 3b26cd14b2..bcd3e83cfc 100644
--- a/Kernel/Lock.h
+++ b/Kernel/Lock.h
@@ -113,7 +113,6 @@ inline bool Lock::unlock_if_locked()
m_lock = 0;
return true;
}
- Scheduler::donate_to(m_holder, m_name);
}
}