The patch titled sched: improve efficiency of sched_fork() has been removed from the -mm tree. Its filename was sched-improve-efficiency-of-sched_fork.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: sched: improve efficiency of sched_fork() From: Peter Williams <pwil3058@xxxxxxxxxxxxxx> Problem: sched_fork() has always called scheduler_tick() in some (unlikely) circumstances in order to update the current task in light of those circumstances. It has always been the case that the work done by scheduler_tick() was more than was required to handle the problem in hand but no harm was done except for the waste of a few CPU cycles. However, the splitting of scheduler_tick() into two procedures in 2.6.20-rc1 enables the wasted cycles to be saved as the new procedure task_running_tick() does all the work that is required to rectify the problem being handled. Solution: Replace the call to scheduler_tick() in sched_fork() with a call to task_running_tick(). Signed-off-by: Peter Williams <pwil3058@xxxxxxxxxxxxxx> Acked-by: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- kernel/sched.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN kernel/sched.c~sched-improve-efficiency-of-sched_fork kernel/sched.c --- a/kernel/sched.c~sched-improve-efficiency-of-sched_fork +++ a/kernel/sched.c @@ -1567,6 +1567,7 @@ int fastcall wake_up_state(struct task_s return try_to_wake_up(p, state, 0); } +static void task_running_tick(struct rq *rq, struct task_struct *p); /* * Perform scheduler related setup for a newly forked process p. * p is forked by current. @@ -1627,7 +1628,7 @@ void fastcall sched_fork(struct task_str * runqueue lock is not a problem. */ current->time_slice = 1; - scheduler_tick(); + task_running_tick(cpu_rq(cpu), current); } local_irq_enable(); put_cpu(); _ Patches currently in -mm which might be from pwil3058@xxxxxxxxxxxxxx are origin.patch mm-only-sched-add-a-few-scheduler-event-counters.patch sched-add-above-background-load-function.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html