#include <lunaix/hart_state.h>
#include <lunaix/kpreempt.h>
-#include <asm-generic/isrm.h>
-
#include <klibc/string.h>
struct thread empty_thread_obj;
sched_ctx.procs_index = to_check->process->pid;
done:
- isrm_notify_eos(0);
run(to_check);
fail("unexpected return from scheduler");
assert(!proc_terminated(process->parent));
}
- if (sched_ctx.proc_list) {
+ if (likely(sched_ctx.proc_list)) {
llist_append(sched_ctx.proc_list, &process->tasks);
} else {
sched_ctx.proc_list = &process->tasks;