]> git.baikalelectronics.ru Git - kernel.git/commit
Add early-boot-safety check to cond_resched()
authorLinus Torvalds <torvalds@g5.osdl.org>
Tue, 7 Mar 2006 01:38:49 +0000 (17:38 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 7 Mar 2006 01:38:49 +0000 (17:38 -0800)
commit63b0ac9d2a937e8215e637aa6034e878844cd8b9
tree5047966d39ce26f7afd96b794dd4dc6a995458a5
parent21abaacace33f597b3d8173f1080692010e5e699
Add early-boot-safety check to cond_resched()

Just to be safe, we should not trigger a conditional reschedule during
the early boot sequence.  We've historically done some questionable
early on, and the safety warnings in __might_sleep() are generally
turned off during that period, so there might be problems lurking.

This affects CONFIG_PREEMPT_VOLUNTARY, which takes over might_sleep() to
cause a voluntary conditional reschedule.

Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sched.c