]> git.baikalelectronics.ru Git - kernel.git/commit
sched: enable early use of sched_clock()
authorIngo Molnar <mingo@elte.hu>
Fri, 7 Dec 2007 18:02:47 +0000 (19:02 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 7 Dec 2007 18:02:47 +0000 (19:02 +0100)
commit11291fb571171af160afdeca4d026d5028e8b472
treed431ff185719579c6a786a97adf6def6a849751c
parentff3db4d4d8f0ba00d52faafd7595c0d950029e23
sched: enable early use of sched_clock()

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: Ingo Molnar <mingo@elte.hu>
kernel/sched.c