Aaron Durbin (adurbin@chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11469
-gerrit
commit 1ebf4f876c34c60db4ac9c8b82363d5753dcb611 Author: Aaron Durbin adurbin@chromium.org Date: Sun Aug 30 16:04:13 2015 -0500
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 adurbin@chromium.org --- src/soc/imgtec/pistachio/monotonic_timer.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/soc/imgtec/pistachio/monotonic_timer.c b/src/soc/imgtec/pistachio/monotonic_timer.c index 4f3aba9..0d74ae5 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()); }