diff options
-rw-r--r-- | src/soc/imgtec/pistachio/monotonic_timer.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/soc/imgtec/pistachio/monotonic_timer.c b/src/soc/imgtec/pistachio/monotonic_timer.c index 4f3aba9177..0d74ae59b9 100644 --- a/src/soc/imgtec/pistachio/monotonic_timer.c +++ b/src/soc/imgtec/pistachio/monotonic_timer.c @@ -53,10 +53,5 @@ static int get_count_mhz_freq(void) void timer_monotonic_get(struct mono_time *mt) { - mt->microseconds = (long)timestamp_get(); -} - -uint64_t timestamp_get(void) -{ - return read_c0_count()/get_count_mhz_freq(); + mono_time_set_usecs(mt, read_c0_count() / get_count_mhz_freq()); } |