summaryrefslogtreecommitdiff
path: root/util/flash_and_burn/udelay.c
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2004-03-18 19:40:07 +0000
committerLi-Ta Lo <ollie@lanl.gov>2004-03-18 19:40:07 +0000
commit26b237ee18cf3f846313d85dcb80fb42041c3529 (patch)
treecdc854c4665f476a154a98b506f41637a15ea491 /util/flash_and_burn/udelay.c
parent698f23db22cc71da488eb9bec001fda60cbf0b35 (diff)
fixed 32bit v.s. 64bit long int arithematics
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1434 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flash_and_burn/udelay.c')
-rw-r--r--util/flash_and_burn/udelay.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/util/flash_and_burn/udelay.c b/util/flash_and_burn/udelay.c
index a6597e50e8..ad2fb4e3c5 100644
--- a/util/flash_and_burn/udelay.c
+++ b/util/flash_and_burn/udelay.c
@@ -17,17 +17,14 @@ void myusec_calibrate_delay()
unsigned long timeusec;
struct timeval start, end;
int ok = 0;
- void myusec_delay(int time);
printf("Setting up microsecond timing loop\n");
while (!ok) {
- //fprintf(stderr, "Try %d\n", count);
gettimeofday(&start, 0);
myusec_delay(count);
gettimeofday(&end, 0);
timeusec = 1000000 * (end.tv_sec - start.tv_sec ) +
(end.tv_usec - start.tv_usec);
- //fprintf(stderr, "timeusec is %d\n", timeusec);
count *= 2;
if (timeusec < 1000000/4)
continue;