ARM: mxc: Add dummy_get_cycles to avoid access before init is done
authorJan Weitzel <j.weitzel@phytec.de>
Thu, 17 Mar 2011 12:44:29 +0000 (13:44 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Wed, 23 Mar 2011 14:08:12 +0000 (15:08 +0100)
commit93b20e4fdbe1ddc4bef79d968cb1ba453324a499
tree0bc9719659ea8bed908199944cbcc510355b2b57
parent350ac9ddce074855030b88c9e8c016574d2e9097
ARM: mxc: Add dummy_get_cycles to avoid access before init is done

this is needed to use get_cycles with sched_clock. Accessing timer
without enabled clk will result in crash

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/time.c