Blackfin: unify sched_clock() handling between clock sources
authorYi Li <yi.li@analog.com>
Tue, 15 Sep 2009 06:50:51 +0000 (06:50 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Dec 2009 05:13:41 +0000 (00:13 -0500)
commitceb33be95afcfbc4079af334835a345288f9f6ca
tree7244fbd018015de1139df8620f52e2d52751c68e
parentf7036d649c88ad14b482b2787ffb1063c8a719d7
Blackfin: unify sched_clock() handling between clock sources

Currently sched_clock() is only defined when using CYCLES as a clock
source.  Declare sched_clock() in common code and mark it with notrace to
prevent invoking sched_clock() recursively (because ftrace uses
sched_clock() to record time).

Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/time-ts.c