* Nick Piggin <[EMAIL PROTECTED]> wrote: > 1/13 >
ugh, has this been tested? It needs the patch below. Ingo Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]> --- linux/kernel/sched.c.orig +++ linux/kernel/sched.c @@ -2704,11 +2704,11 @@ need_resched_nonpreemptible: schedstat_inc(rq, sched_cnt); now = sched_clock(); - if (likely((long long)now - prev->timestamp < NS_MAX_SLEEP_AVG)) + if (likely((long long)now - prev->timestamp < NS_MAX_SLEEP_AVG)) { run_time = now - prev->timestamp; if (unlikely((long long)now - prev->timestamp < 0)) run_time = 0; - else + } else run_time = NS_MAX_SLEEP_AVG; /* - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/