Re: [PATCH] sched: Simplify move_tasks()

2007-08-04 Thread Ingo Molnar
* Peter Williams <[EMAIL PROTECTED]> wrote: > NB Since move_tasks() gets called with two run queue locks held even > small reductions in overhead are worthwhile. thanks, i've applied your patch. It also shaves off a bit of code from sched.o: textdata bss dec hex filename

[PATCH] sched: Simplify move_tasks()

2007-08-03 Thread Peter Williams
The move_tasks() function is currently multiplexed with two distinct capabilities: 1. attempt to move a specified amount of weighted load from one run queue to another; and 2. attempt to move a specified number of tasks from one run queue to another. The first of these capabilities is used i