mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][2.5] make kernel scheduler use list_move_tail (1 occ)
@ 2002-06-09 14:22 Lightweight patch manager
  2002-06-09 17:22 ` Robert Love
  0 siblings, 1 reply; 4+ messages in thread
From: Lightweight patch manager @ 2002-06-09 14:22 UTC (permalink / raw)
  To: Robert Love; +Cc: Linux Kernel Mailing List, Ingo Molnar

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-06-09 17:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-09 14:22 [PATCH][2.5] make kernel scheduler use list_move_tail (1 occ) Lightweight patch manager
2002-06-09 17:22 ` Robert Love
2002-06-09 17:26   ` Robert Love
2002-06-09 17:49   ` Thunder from the hill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®