sched: fix running flag

This commit is contained in:
Matheus
2025-08-27 21:53:15 -03:00
parent 32f02edcc8
commit 91ac6052f0
+1
View File
@@ -161,6 +161,7 @@ static void yield(context_t *context, void *) {
thread_t *next = sched_select_next_thread(); thread_t *next = sched_select_next_thread();
if (thread == next)
thread->flags |= THREAD_FLAGS_RUNNING; thread->flags |= THREAD_FLAGS_RUNNING;
spinlock_release(&current_cpu()->sched_lock); spinlock_release(&current_cpu()->sched_lock);