PERFORCE change 96572 for review

Warner Losh imp at FreeBSD.org
Tue May 2 22:39:06 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=96572

Change 96572 by imp at imp_hammer on 2006/05/02 22:38:23

	slightly better delay routine.

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/delay.c#2 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/delay.c#2 (text+ko) ====

@@ -5,9 +5,10 @@
 void
 Delay(int us)
 {
-	unsigned later;
+	unsigned later, now;
 
-	later = (AT91C_BASE_ST->ST_CRTR + us / 3 + 1) & AT91C_ST_CRTV;
+	now = AT91C_BASE_ST->ST_CRTR;
+	later = (now + us / 25 + 1) & AT91C_ST_CRTV;
 	while (later != AT91C_BASE_ST->ST_CRTR)
 		continue;
 }


More information about the p4-projects mailing list