Re: New pre-2.0.31 patches..

Adam McKee (amckee@poboxes.com)
Tue, 5 Aug 1997 12:50:06 -0600 (CST)


I wonder how it can be that current->next_run == NULL in the following:

-- Adam

> +++ linux/kernel/sched.c Tue Aug 5 17:45:33 1997
> @@ -1459,9 +1459,11 @@
> asmlinkage int sys_sched_yield(void)
> {
> cli();
> - move_last_runqueue(current);
> - current->counter = 0;
> - need_resched = 1;
> + if (current->next_run) {
> + move_last_runqueue(current);
> + current->counter = 0;
> + need_resched = 1;
> + }