diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-01 10:27:25 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-01 10:56:17 +0100 |
commit | 934b1d8a9ba9d86f9540cc15f881d67e705f27bd (patch) | |
tree | 40d8045e1cf818a60e0bbbbe4223990df0ef8bbc /Kernel/Scheduler.h | |
parent | 8d51352b967494d247391686c0df7876fee2a9dd (diff) | |
download | serenity-934b1d8a9ba9d86f9540cc15f881d67e705f27bd.zip |
Kernel: Finalizer should not go back to sleep if there's more to do
Before putting itself back on the wait queue, the finalizer task will
now check if there's more work to do, and if so, do it first. :^)
This patch also puts a bunch of process/thread debug logging behind
PROCESS_DEBUG and THREAD_DEBUG since it was unbearable to debug this
stuff with all the spam.
Diffstat (limited to 'Kernel/Scheduler.h')
-rw-r--r-- | Kernel/Scheduler.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Scheduler.h b/Kernel/Scheduler.h index 66a7a0909a..826b31c017 100644 --- a/Kernel/Scheduler.h +++ b/Kernel/Scheduler.h @@ -41,6 +41,7 @@ extern Thread* current; extern Thread* g_finalizer; extern Thread* g_colonel; extern WaitQueue* g_finalizer_wait_queue; +extern bool g_finalizer_has_work; extern u64 g_uptime; extern SchedulerData* g_scheduler_data; |