taskfs fix up, minor refactoring
[lunaix-os.git] / lunaix-os / kernel / process / sched.c
index 31775bfdf7c36d19c77120c3a67d76da2e11d747..be02c57f79bd181a9e1156b20410cff581f111ff 100644 (file)
@@ -20,8 +20,6 @@
 #include <lunaix/hart_state.h>
 #include <lunaix/kpreempt.h>
 
-#include <asm-generic/isrm.h>
-
 #include <klibc/string.h>
 
 struct thread empty_thread_obj;
@@ -221,7 +219,6 @@ schedule()
     sched_ctx.procs_index = to_check->process->pid;
 
 done:
-    isrm_notify_eos(0);
     run(to_check);
 
     fail("unexpected return from scheduler");
@@ -449,7 +446,7 @@ commit_process(struct proc_info* process)
         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;