From a658a7c8b325de61ac17aef11dc46d87e2b665cd Mon Sep 17 00:00:00 2001 From: Felix Date: Wed, 17 Feb 2021 14:13:19 +0100 Subject: [PATCH] sched: yes but what if i weren't stupid? --- kernel/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched.c b/kernel/sched.c index a4eb8f9..4ff200f 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -73,7 +73,7 @@ void *sched_process_switch(void *curr_sp) nextpid++; nextpid %= CONFIG_SCHED_MAXTASK; tmp = _sched_tasktab[nextpid]; - if (tmp != NULL && sched_task_should_run(_sched_current_task)) { + if (tmp != NULL && sched_task_should_run(tmp)) { _sched_current_task = tmp; break; }