From 60391b65fdaca3a365cb16d891f0541c74e866b4 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Sun, 30 Aug 2015 16:04:13 -0500 Subject: imgtec/pistachio: remove timestamp_get() implementation As pistachio already provides timer_monotonic_get() let the generic timestamp_get() use that instead of having around another implementation of timestamp_get(). BUG=chrome-os-partner:44669 BRANCH=None TEST=None Change-Id: Iaa6db49f0055b7c2ef116f41453f838093e516e0 Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/11469 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc --- src/soc/imgtec/pistachio/monotonic_timer.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/soc/imgtec') 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()); } -- cgit v1.2.3