Remove an assertion for prev->s in schedcoop_schedule(),
as it is a valid case that uk_sched_yield() is called to
switch away from a terminated thread.
Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Simon Kuenzer <simon@unikraft.io>
GitHub-Closes: #1550
* interrupted at the return instruction. And therefore at safe point.
*/
if (prev != next) {
- if (next != &c->idle) {
- UK_ASSERT(prev->sched);
+ if (next != &c->idle)
uk_sched_stats_next_count_incr(s);
- }
uk_sched_thread_switch(next);
}
}