Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hpcsh/dev/hd64461 Use explicit "continue" for busy ...



details:   https://anonhg.NetBSD.org/src/rev/ccd093f11202
branches:  trunk
changeset: 586416:ccd093f11202
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun Dec 18 23:32:39 2005 +0000

description:
Use explicit "continue" for busy loop bodies in a couple of places I
missed in the previous commit.

diffstat:

 sys/arch/hpcsh/dev/hd64461/hd64461video.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 389aa8d66e4e -r ccd093f11202 sys/arch/hpcsh/dev/hd64461/hd64461video.c
--- a/sys/arch/hpcsh/dev/hd64461/hd64461video.c Sun Dec 18 23:20:03 2005 +0000
+++ b/sys/arch/hpcsh/dev/hd64461/hd64461video.c Sun Dec 18 23:32:39 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hd64461video.c,v 1.33 2005/12/18 23:20:03 uwe Exp $    */
+/*     $NetBSD: hd64461video.c,v 1.34 2005/12/18 23:32:39 uwe Exp $    */
 
 /*-
  * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hd64461video.c,v 1.33 2005/12/18 23:20:03 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hd64461video.c,v 1.34 2005/12/18 23:32:39 uwe Exp $");
 
 #include "debug_hpcsh.h"
 // #define HD64461VIDEO_HWACCEL
@@ -404,13 +404,14 @@
 
        while ((hd64461_reg_read_2(HD64461_LCDGRCFGR_REG16) &
            HD64461_LCDGRCFGR_ACCSTATUS) != 0)
-               /* busy loop */;
+               continue;
+
        r &= ~HD64461_LCDGRCFGR_ACCRESET;
        hd64461_reg_write_2(HD64461_LCDGRCFGR_REG16, r);
 
        while ((hd64461_reg_read_2(HD64461_LCDGRCFGR_REG16) &
            HD64461_LCDGRCFGR_ACCSTATUS) != 0)
-               /* busy loop */;
+               continue;
 
        hd64461_reg_write_2(HD64461_LCDGRDOR_REG16,
            (hvc->vc.vc_fbwidth - 1) & HD64461_LCDGRDOR_MASK);



Home | Main Index | Thread Index | Old Index