Messages in this thread Patch in this message | | | Date | Thu, 24 Feb 2005 08:46:24 +0100 | From | Ingo Molnar <> | Subject | Re: [PATCH 1/13] timestamp fixes |
| |
* Nick Piggin <nickpiggin@yahoo.com.au> wrote:
> 1/13 >
ugh, has this been tested? It needs the patch below.
Ingo
Signed-off-by: Ingo Molnar <mingo@elte.hu>
--- 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |