Module Name: src
Committed By: tsutsui
Date: Wed Sep 1 15:20:12 UTC 2010
Modified Files:
src/sys/arch/dreamcast/dev: gdrom.c
Log Message:
Replace an empty for() loop (which would be optimized out) with DELAY(1).
No visible performance difference.
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/dreamcast/dev/gdrom.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/dreamcast/dev/gdrom.c
diff -u src/sys/arch/dreamcast/dev/gdrom.c:1.30 src/sys/arch/dreamcast/dev/gdrom.c:1.31
--- src/sys/arch/dreamcast/dev/gdrom.c:1.30 Wed Sep 1 15:08:22 2010
+++ src/sys/arch/dreamcast/dev/gdrom.c Wed Sep 1 15:20:12 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: gdrom.c,v 1.30 2010/09/01 15:08:22 tsutsui Exp $ */
+/* $NetBSD: gdrom.c,v 1.31 2010/09/01 15:20:12 tsutsui Exp $ */
/*-
* Copyright (c) 2001 Marcus Comstedt
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: gdrom.c,v 1.30 2010/09/01 15:08:22 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gdrom.c,v 1.31 2010/09/01 15:20:12 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -227,8 +227,7 @@
return -1;
GDROM_COND = 0xa0;
- for (i = 0; i < 64; i++)
- ;
+ DELAY(1);
while ((GDROM_BUSY & 0x88) != 8)
;