diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-07 11:12:23 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-07 11:14:58 +0100 |
commit | 5582a0a254c691db0c2ea8cf79bdbb0a2d74f00a (patch) | |
tree | e3bd27a9136daee6132249b785d4327746513ad6 /Userland | |
parent | 4df92709c801e6cbdbaea71d55550171e65a95b3 (diff) | |
download | serenity-5582a0a254c691db0c2ea8cf79bdbb0a2d74f00a.zip |
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.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/top.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/top.cpp b/Userland/top.cpp index 2e0d20bfa7..cc5c79e9c4 100644 --- a/Userland/top.cpp +++ b/Userland/top.cpp @@ -43,7 +43,7 @@ static Snapshot get_snapshot() if (!ptr) break; auto parts = String(buf, Chomp).split(','); - if (parts.size() < 16) + if (parts.size() < 17) break; bool ok; pid_t pid = parts[0].to_uint(ok); |