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>
This commit is contained in:
parent
107d1fb137
commit
60391b65fd
|
@ -53,10 +53,5 @@ static int get_count_mhz_freq(void)
|
||||||
|
|
||||||
void timer_monotonic_get(struct mono_time *mt)
|
void timer_monotonic_get(struct mono_time *mt)
|
||||||
{
|
{
|
||||||
mt->microseconds = (long)timestamp_get();
|
mono_time_set_usecs(mt, read_c0_count() / get_count_mhz_freq());
|
||||||
}
|
|
||||||
|
|
||||||
uint64_t timestamp_get(void)
|
|
||||||
{
|
|
||||||
return read_c0_count()/get_count_mhz_freq();
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue