diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2008-04-25 23:11:02 +0000 |
---|---|---|
committer | Jordan Crouse <jordan.crouse@amd.com> | 2008-04-25 23:11:02 +0000 |
commit | e2271430c53d24976ec3b0869dd8993cfba6d768 (patch) | |
tree | 4a5cf4555b8b535377e0f457b51c70c13ae08609 /payloads/libpayload/i386 | |
parent | d772e1e7feb3d782564fe7f46374d4ae8a5f4c36 (diff) |
libpayload: Add gettimeofday() and friends
Add a gettimeofday() implementation - it works pretty well, but it
drifts a little bit so its not very suitable for keeping time. It
works best to track changes in time over small periods of time.
Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3272 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/i386')
-rw-r--r-- | payloads/libpayload/i386/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/i386/timer.c b/payloads/libpayload/i386/timer.c index 789bf0b150..ba3c31ae4e 100644 --- a/payloads/libpayload/i386/timer.c +++ b/payloads/libpayload/i386/timer.c @@ -30,7 +30,7 @@ #include <libpayload.h> #include <arch/rdtsc.h> -static unsigned int cpu_khz; +unsigned int cpu_khz; /** * Calculate the speed of the processor for use in delays. |