diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-03-07 21:55:27 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-08 14:14:00 -0800 |
commit | 81c29a857d3c8d6ea9c4f20d196c36bf0a07c615 (patch) | |
tree | 3ebb7813439ec75e1afbc4385431388cd7158d67 /kernel/sched.c | |
parent | 4d6660eb3665f22d16aff466eb9d45df6102b254 (diff) | |
download | op-kernel-dev-81c29a857d3c8d6ea9c4f20d196c36bf0a07c615.zip op-kernel-dev-81c29a857d3c8d6ea9c4f20d196c36bf0a07c615.tar.gz |
[PATCH] idle threads should have a sane ->timestamp value
Idle threads should have a sane ->timestamp value, to avoid init kernel
thread(s) from inheriting it and causing miscalculations in
try_to_wake_up().
Reported-by: Mike Galbraith <efault@gmx.de>.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 3454bb8..e82c99f 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -4335,6 +4335,7 @@ void __devinit init_idle(task_t *idle, int cpu) runqueue_t *rq = cpu_rq(cpu); unsigned long flags; + idle->timestamp = sched_clock(); idle->sleep_avg = 0; idle->array = NULL; idle->prio = MAX_PRIO; |