sched: make cpu_clock() globally synchronous
authorIngo Molnar <mingo@elte.hu>
Thu, 28 Feb 2008 20:00:21 +0000 (21:00 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:44:57 +0000 (19:44 +0200)
commit27ec4407790d075c325e1f4da0a19c56953cce23
treed8c068c4743394eab173995bf085a99dfec257c7
parent018d6db4cb5bbdcd65424a16f2dcca692ed32ae4
sched: make cpu_clock() globally synchronous

Alexey Zaytsev reported (and bisected) that the introduction of
cpu_clock() in printk made the timestamps jump back and forth.

Make cpu_clock() more reliable while still keeping it fast when it's
called frequently.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c