summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-08-30 16:04:13 -0500
committerAaron Durbin <adurbin@chromium.org>2015-08-31 13:55:13 +0000
commit60391b65fdaca3a365cb16d891f0541c74e866b4 (patch)
tree749b0735f1578e531c2425fc290687e9e257f56f /src
parent107d1fb1376bca62cf07f59eec222f7834c5f326 (diff)
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> Reviewed-on: http://review.coreboot.org/11469 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/soc/imgtec/pistachio/monotonic_timer.c7
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());
}