Date: Tue, 2 May 2006 22:39:05 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 96572 for review Message-ID: <200605022239.k42Md5Pu056583@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96572 Change 96572 by imp@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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605022239.k42Md5Pu056583>