sched: fix running flag

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