Re: idle_task priority and scheduling 2.1.131

Andrea Arcangeli (andrea@e-mind.com)
Sat, 5 Dec 1998 12:04:12 +0100 (CET)


On Fri, 4 Dec 1998, Rik van Riel wrote:

>Please change this to:
>if (p->policy != SCHED_OTHER || current->policy != SCHED_OTHER ||
>
>> + p->counter + p->priority > this->counter + this->priority + 3)
>> + current->need_resched = 1;
>> }
>
>We really want to catch the case where current has set
>SCHED_YIELD or has done something strange (idle process).

If the current process has SCHED_YIELD set it will have also
current->need_resched == 1.

Andrea Arcangeli

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/