[PATCH] Tweak idle thread setup semantics
authorIngo Molnar <mingo@elte.hu>
Tue, 28 Jun 2005 14:40:42 +0000 (16:40 +0200)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 28 Jun 2005 21:56:51 +0000 (14:56 -0700)
commitf340c0d1a3f40fdcba69cd291530a4debc58748f
tree22fca5983aff6ce2aa7d4ede0b031666dfe1f28d
parent082cf69eb82681f4eacb3a5653834c7970714bef
[PATCH] Tweak idle thread setup semantics

This patch tweaks idle thread setup semantics a bit: instead of setting
NEED_RESCHED in init_idle(), we do an explicit schedule() before calling
into cpu_idle().

This patch, while having no negative side-effects, enables wider use of
cond_resched()s.  (which might happen in the stock kernel too, but it's
particulary important for voluntary-preempt)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
init/main.c
kernel/sched.c