Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/dreamcast/dev Replace an empty for() loop (which wo...
details: https://anonhg.NetBSD.org/src/rev/a294f4de5ad7
branches: trunk
changeset: 757497:a294f4de5ad7
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed Sep 01 15:20:12 2010 +0000
description:
Replace an empty for() loop (which would be optimized out) with DELAY(1).
No visible performance difference.
diffstat:
sys/arch/dreamcast/dev/gdrom.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r b72ac29efa73 -r a294f4de5ad7 sys/arch/dreamcast/dev/gdrom.c
--- a/sys/arch/dreamcast/dev/gdrom.c Wed Sep 01 15:18:47 2010 +0000
+++ b/sys/arch/dreamcast/dev/gdrom.c Wed Sep 01 15:20:12 2010 +0000
@@ -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)
;
Home |
Main Index |
Thread Index |
Old Index