sched_clock: delay using sched_clock()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 11 Aug 2008 06:59:03 +0000 (08:59 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 11 Aug 2008 06:59:03 +0000 (08:59 +0200)
commitc1955a3d4762e7a9bf84035eb3c4886a900f0d15
treea00dcd1736c612017df7094a91d8a6435b7a49c9
parent4a273f209cc95d148f79b4c96d3d03997b44ffda
sched_clock: delay using sched_clock()

Some arch's can't handle sched_clock() being called too early - delay
this until sched_clock_init() has been called.

Reported-by: Bill Gatliff <bgat@billgatliff.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Tested-by: Nishanth Aravamudan <nacc@us.ibm.com>
CC: Russell King - ARM Linux <linux@arm.linux.org.uk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h
kernel/sched_clock.c