The patch titled sched-improve-migration-accuracy fix has been added to the -mm tree. Its filename is sched-improve-migration-accuracy-fix.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: sched-improve-migration-accuracy fix From: Mike Galbraith <efault@xxxxxx> Fix sleep_avg breakage induced by sched-improve-migration-accuracy.path Use p->last_ran to fix sched_time buglet instead of p->timestamp. Signed-off-by: Mike Galbraith <efault@xxxxxx> Acked-by: Don Mullis <dwm@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- kernel/sched.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff -puN kernel/sched.c~sched-improve-migration-accuracy-fix kernel/sched.c --- a/kernel/sched.c~sched-improve-migration-accuracy-fix +++ a/kernel/sched.c @@ -2972,8 +2972,8 @@ EXPORT_PER_CPU_SYMBOL(kstat); static inline void update_cpu_clock(struct task_struct *p, struct rq *rq, unsigned long long now) { - p->sched_time += now - p->timestamp; - p->timestamp = rq->most_recent_timestamp = now; + p->sched_time += now - p->last_ran; + p->last_ran = rq->most_recent_timestamp = now; } /* @@ -2986,7 +2986,7 @@ unsigned long long current_sched_time(co unsigned long flags; local_irq_save(flags); - ns = p->sched_time + sched_clock() - p->timestamp; + ns = p->sched_time + sched_clock() - p->last_ran; local_irq_restore(flags); return ns; @@ -3497,10 +3497,11 @@ switch_tasks: prev->sleep_avg -= run_time; if ((long)prev->sleep_avg <= 0) prev->sleep_avg = 0; + prev->timestamp = prev->last_ran = now; sched_info_switch(prev, next); if (likely(prev != next)) { - next->timestamp = prev->last_ran = now; + next->timestamp = now; rq->nr_switches++; rq->curr = next; ++*switch_count; _ Patches currently in -mm which might be from efault@xxxxxx are remove-the-syslog-interface-when-printk-is-disabled.patch sched-improve-migration-accuracy.patch sched-improve-migration-accuracy-tidy.patch sched-improve-migration-accuracy-fix.patch readahead-call-scheme.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