sched: fix sched_clock_cpu()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 29 May 2008 08:07:15 +0000 (10:07 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 29 May 2008 09:29:19 +0000 (11:29 +0200)
commita381759d6ad5c5dea5a981918e0b4493e9b66ac7
tree059df197fe2974c655fc098e3aaf6968a3cc2a3c
parent6363ca57c76b7b83639ca8c83fc285fa26a7880e
sched: fix sched_clock_cpu()

Make sched_clock_cpu() return 0 before it has been initialized and avoid
corrupting its state due to doing so.

This fixes the weird printk timestamp jump reported.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
kernel/sched_clock.c