The biggest problem is that p->counter is essentially a
random value because of the gross recalculation done in
the schedule() function.
If we were to use a more smoothed out recalculation
[p->counter = (((p->counter * 7) + p->priority + 7) / 8);]
then we could just use p->counter without ever having to
do any expensive recalculations.
regards,
Rik -- If a Microsoft product fails, who do you sue?
+-------------------------------------------------------------------+
| Linux memory management tour guide. riel@nl.linux.org |
| Scouting Vries cubscout leader. http://www.nl.linux.org/~riel |
+-------------------------------------------------------------------+
-
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/