diff options
author | Gabe Black <gabeblack@chromium.org> | 2011-08-08 16:51:04 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:59:30 -0700 |
commit | ecc8c1e8ec9339a11a6dd79a3bd4ed65da79b189 (patch) | |
tree | 09948befd54961ce85f91307e0b373d35edfeaa0 /lib | |
parent | dc900f1de50a5e0d329433cb3957d40c689062b7 (diff) |
Makes the VbExGetTimer vboot callback function board specific
The timer_get_us function which is called by the existing implementation of
VbExGetTimer isn't trivial to implement on x86. The vboot source says that the
TSC is an appropriate time source to return from this function. This change
makes the VbExGetTimer function per board so that it can use rdtsc instead of
timer_get_us.
BUG=chrome-os-partner:4552
TEST=Built and booted on x86-alex, and built on tegra2_kaen.
Signed-off-by: Gabe Black <gabeblack@google.com>
Change-Id: I335d5ae98949cd05c42dc3f30c52931bdf63a623
Reviewed-on: http://gerrit.chromium.org/gerrit/5544
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vbexport/utility.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/vbexport/utility.c b/lib/vbexport/utility.c index d8d0807d618..d59ecd2e629 100644 --- a/lib/vbexport/utility.c +++ b/lib/vbexport/utility.c @@ -67,11 +67,6 @@ void VbExFree(void *ptr) free(ptr); } -uint64_t VbExGetTimer(void) -{ - return timer_get_us(); -} - void VbExSleepMs(uint32_t msec) { uint32_t delay, start; |