mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
Kernel: Make sure we never put the colonel thread in the runnable list.
This would cause it to get scheduled unnecessarily.
This commit is contained in:
@@ -232,6 +232,9 @@ bool Scheduler::pick_next()
|
||||
}
|
||||
#endif
|
||||
|
||||
if (g_runnable_threads->is_empty())
|
||||
return context_switch(s_colonel_process->main_thread());
|
||||
|
||||
auto* previous_head = g_runnable_threads->head();
|
||||
for (;;) {
|
||||
// Move head to tail.
|
||||
|
||||
Reference in New Issue
Block a user