sched: move sched_clock before first use
authorHugh Dickins <hugh@veritas.com>
Fri, 25 Jul 2008 18:45:00 +0000 (19:45 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 28 Jul 2008 14:35:03 +0000 (16:35 +0200)
commit2c3d103ba90827cfb478bf10464d9b5b9cea369c
tree96c795c57a69a2a94ff1f077b1285136f4647b25
parente26873bb10f722f10b1af9de05119a3d7cbc07b2
sched: move sched_clock before first use

Move sched_clock() up to stop warning: weak declaration of `sched_clock'
after first use results in unspecified behavior (if -fno-unit-at-a-time).

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Mike Travis <travis@sgi.com>
Cc: Ben Herrenschmidt <benh@kernel.crashing.org>
Cc: Linuxppc-dev@ozlabs.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_clock.c