Skip to content
  • Ingo Molnar's avatar
    sched: enable early use of sched_clock() · 8ced5f69
    Ingo Molnar authored
    
    
    some platforms have sched_clock() implementations that cannot be called
    very early during wakeup. If it's called it might hang or crash in hard
    to debug ways. So only call update_rq_clock() [which calls sched_clock()]
    if sched_init() has already been called. (rq->idle is NULL before the
    scheduler is initialized.)
    
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    8ced5f69