• Linus Torvalds's avatar
    Add early-boot-safety check to cond_resched() · 8ba7b0a1
    Linus Torvalds authored
    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: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    8ba7b0a1
sched.c 153 KB