[PATCH][2.5] make kernel scheduler use list_move_tail (1 occ)

Lightweight patch manager (patch@luckynet.dynu.com)
Sun, 9 Jun 2002 08:22:06 -0600 (MDT)


This makes the kernel scheduler use list_move_tail instead of more code

--- linus-2.5/kernel/sched.c Sun Jun 9 04:17:27 2002
+++ thunder-2.5/kernel/sched.c Sun Jun 9 06:58:51 2002
@@ -1360,8 +1360,7 @@
* then just requeue the task to the end of the runqueue:
*/
if (likely(current->prio == MAX_PRIO-1 || rt_task(current))) {
- list_del(&current->run_list);
- list_add_tail(&current->run_list, array->queue + current->prio);
+ list_move_tail(&current->run_list, array->queue + current->prio);
} else {
list_del(&current->run_list);
if (list_empty(array->queue + current->prio))

-- 
Lightweight patch manager using pine. If you have any objections, tell me.

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