Skip to content

Commit

Permalink
sched/basic Rm unnecessary run-queue verification
Browse files Browse the repository at this point in the history
  • Loading branch information
suhas-pai committed Aug 27, 2024
1 parent 9e4b63f commit d0f87bc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/src/sched/basic/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 72,11 @@ __debug_optimize(3) bool thread_running(const struct thread *const thread) {
__debug_optimize(3)
static void sched_enqueue_thread_for_use(struct thread *const thread) {
list_radd(&g_run_queue, &thread->sched_info.list);
list_verify(&g_run_queue, sched_info.list);;
}

__debug_optimize(3)
static void sched_dequeue_thread_for_use(struct thread *const thread) {
list_remove(&thread->sched_info.list);
list_verify(&g_run_queue, sched_info.list);;
}

__debug_optimize(3) void sched_enqueue_thread(struct thread *const thread) {
Expand Down

0 comments on commit d0f87bc

Please sign in to comment.