diff options
Diffstat (limited to 'src/cpu/samsung/exynos5250/monotonic_timer.c')
-rw-r--r-- | src/cpu/samsung/exynos5250/monotonic_timer.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/cpu/samsung/exynos5250/monotonic_timer.c b/src/cpu/samsung/exynos5250/monotonic_timer.c index 267d9c3aef..89ac416eb1 100644 --- a/src/cpu/samsung/exynos5250/monotonic_timer.c +++ b/src/cpu/samsung/exynos5250/monotonic_timer.c @@ -22,16 +22,13 @@ #include "clk.h" -static int initialized; - static const uint32_t clocks_per_usec = MCT_HZ/1000000; void timer_monotonic_get(struct mono_time *mt) { - if (!initialized) { - mct_start(); - initialized = 1; - } + /* We don't have to call mct_start() here + * because it was already called in the bootblock + */ mono_time_set_usecs(mt, mct_raw_value() / clocks_per_usec); } |