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

From: Lightweight patch manager (patch@luckynet.dynu.com)
Date: Sun Jun 09 2002 - 09:22:06 EST


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/



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:14 EST