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

* Re: [PATCH][2.5] make kernel scheduler use list_move_tail (1 occ)
  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
  0 siblings, 2 replies; 4+ messages in thread
From: Robert Love @ 2002-06-09 17:22 UTC (permalink / raw)
  To: Lightweight patch manager; +Cc: Linux Kernel Mailing List, Ingo Molnar

On Sun, 2002-06-09 at 07:22, Lightweight patch manager wrote:
> This makes the kernel scheduler use list_move_tail instead of more code
>
> [...]
>
> -		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);

I guess this would be fine if I knew what list_move_tail did... or if I
had it in my tree:

	[10:11:06]rml@sinai:~/kernel-2.5/linux$ grep -r list_move_tail *
	[10:12:07]rml@sinai:~/kernel-2.5/linux$

???

	Robert Love


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

* Re: [PATCH][2.5] make kernel scheduler use list_move_tail (1 occ)
  2002-06-09 17:22 ` Robert Love
@ 2002-06-09 17:26   ` Robert Love
  2002-06-09 17:49   ` Thunder from the hill
  1 sibling, 0 replies; 4+ messages in thread
From: Robert Love @ 2002-06-09 17:26 UTC (permalink / raw)
  To: Lightweight patch manager; +Cc: Linux Kernel Mailing List, Ingo Molnar

On Sun, 2002-06-09 at 10:22, Robert Love wrote:

> I guess this would be fine if I knew what list_move_tail did... or if I
> had it in my tree:

Oh I see there was an earlier patch that added these new macros,
sorry... that should of been mentioned :)

Yes, this is fine with me.

	Robert Love






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

* Re: [PATCH][2.5] make kernel scheduler use list_move_tail (1 occ)
  2002-06-09 17:22 ` Robert Love
  2002-06-09 17:26   ` Robert Love
@ 2002-06-09 17:49   ` Thunder from the hill
  1 sibling, 0 replies; 4+ messages in thread
From: Thunder from the hill @ 2002-06-09 17:49 UTC (permalink / raw)
  To: Robert Love
  Cc: Lightweight patch manager, Linux Kernel Mailing List, Ingo Molnar

Hi,

On 9 Jun 2002, Robert Love wrote:
> I guess this would be fine if I knew what list_move_tail did... or if I
> had it in my tree:

There was a patch introducing it this morning, maybe you missed it.

http://marc.theaimsgroup.com/?l=linux-kernel&m=102362676727017&w=2

Regards,
Thunder
-- 
ship is leaving right on time	|	Thunder from the hill at ngforever
empty harbour, wave goodbye	|
evacuation of the isle		|	free inhabitant not directly
caveman's paintings drowning	|	belonging anywhere


^ 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®