[coreboot-gerrit] New patch to review for coreboot: imgtec/pistachio: remove timestamp_get() implementation

Aaron Durbin (adurbin@chromium.org) gerrit at coreboot.org
Mon Aug 31 05:13:50 CEST 2015


Aaron Durbin (adurbin at 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 at 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 at 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());
 }



More information about the coreboot-gerrit mailing list