aboutsummaryrefslogtreecommitdiffstats
path: root/udelay.c
diff options
context:
space:
mode:
Diffstat (limited to 'udelay.c')
-rw-r--r--udelay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/udelay.c b/udelay.c
index c3f14f3e..f6fd103c 100644
--- a/udelay.c
+++ b/udelay.c
@@ -92,10 +92,10 @@ static unsigned long measure_os_delay_resolution(void)
unsigned long timeusec;
struct timeval start, end;
unsigned long counter = 0;
-
+
gettimeofday(&start, NULL);
timeusec = 0;
-
+
while (!timeusec && (++counter < 1000000000)) {
gettimeofday(&end, NULL);
timeusec = 1000000 * (end.tv_sec - start.tv_sec) +
@@ -115,7 +115,7 @@ static unsigned long measure_delay(unsigned int usecs)
{
unsigned long timeusec;
struct timeval start, end;
-
+
gettimeofday(&start, NULL);
myusec_delay(usecs);
gettimeofday(&end, NULL);