From cf29de879843ec2293483eeb609191a834a4863c Mon Sep 17 00:00:00 2001 From: Ollie Lho Date: Thu, 18 Mar 2004 19:40:07 +0000 Subject: Fix 32bit vs. 64bit long int arithematics Corresponding to flashrom svn r8 and coreboot v2 svn r1434. --- udelay.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'udelay.c') diff --git a/udelay.c b/udelay.c index a6597e50..ad2fb4e3 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; -- cgit v1.2.3