From 09a527fb123e2e9dd8e37dab86c8abfcf394c60c Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 10 Aug 2024 18:16:00 +0300 Subject: [PATCH] Kernel: Fix scheduler thread counter I was actually never incrementing the counter :D --- kernel/kernel/Scheduler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/kernel/Scheduler.cpp b/kernel/kernel/Scheduler.cpp index 02d9c4cc48..11f34ae567 100644 --- a/kernel/kernel/Scheduler.cpp +++ b/kernel/kernel/Scheduler.cpp @@ -361,6 +361,8 @@ namespace Kernel else m_block_queue.add_thread_with_wake_time(node); + m_thread_count++; + Processor::set_interrupt_state(state); }