sched: yes but what if i weren't stupid?

This commit is contained in:
anna 2021-02-17 14:13:19 +01:00
parent 9b1eef8a64
commit a658a7c8b3
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -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;
}