>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/