]> git.baikalelectronics.ru Git - kernel.git/commit
sched: make early bootup sched_clock() use safer
authorIngo Molnar <mingo@elte.hu>
Wed, 13 Feb 2008 13:02:36 +0000 (14:02 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 25 Feb 2008 15:34:16 +0000 (16:34 +0100)
commit9b1ac0f016deedbdaa9ed12a7b374bb24fd9af48
tree2ba5c725d4723385e88b0a54e8bb4be5b9e38384
parent43f675f1ef5519737391c36495b999a9b028786a
sched: make early bootup sched_clock() use safer

do not call sched_clock() too early. Not only might rq->idle
not be set up - but pure per-cpu data might not be accessible
either.

this solves an ia64 early bootup hang with CONFIG_PRINTK_TIME=y.

Tested-by: Tony Luck <tony.luck@gmail.com>
Acked-by: Tony Luck <tony.luck@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c