summaryrefslogtreecommitdiffstats
path: root/udelay.c
diff options
context:
space:
mode:
authorOllie Lho <ollie@sis.com.tw>2004-03-18 19:40:07 +0000
committerOllie Lho <ollie@sis.com.tw>2004-03-18 19:40:07 +0000
commit55bd16c263222494321766810039aa9e7bc0ddb8 (patch)
tree17ed4f4c1e385338b6470fa3d2974668d6b8b5fc /udelay.c
parent29dbba09011d9487e2d0573c3f2bd32010fedc48 (diff)
downloadflashrom-55bd16c263222494321766810039aa9e7bc0ddb8.zip
flashrom-55bd16c263222494321766810039aa9e7bc0ddb8.tar.gz
Fixed 32bit vs 64bit long int arithematics
Corresponding to flashrom svn r8 and coreboot v2 svn r1434.
Diffstat (limited to 'udelay.c')
-rw-r--r--udelay.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/udelay.c b/udelay.c
index a6597e5..ad2fb4e 100644
--- a/udelay.c
+++ b/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;
OpenPOWER on IntegriCloud