Source-Changes-HG archive

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

[src/sommerfeld_i386mp_1]: src/sys/arch/i386/i386 Cosmetic changes.



details:   https://anonhg.NetBSD.org/src/rev/74655d72c5e8
branches:  sommerfeld_i386mp_1
changeset: 482371:74655d72c5e8
user:      enami <enami%NetBSD.org@localhost>
date:      Sun Feb 11 09:25:21 2001 +0000

description:
Cosmetic changes.

diffstat:

 sys/arch/i386/i386/lock_machdep.c |  22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diffs (76 lines):

diff -r cedf03425306 -r 74655d72c5e8 sys/arch/i386/i386/lock_machdep.c
--- a/sys/arch/i386/i386/lock_machdep.c Sun Feb 11 09:12:15 2001 +0000
+++ b/sys/arch/i386/i386/lock_machdep.c Sun Feb 11 09:25:21 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lock_machdep.c,v 1.1.2.6 2001/01/07 18:16:02 sommerfeld Exp $ */
+/* $NetBSD: lock_machdep.c,v 1.1.2.7 2001/02/11 09:25:21 enami Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -60,6 +60,7 @@
 __cpu_simple_lock_init(lockp)
        __cpu_simple_lock_t *lockp;
 {
+
        *lockp = __SIMPLELOCK_UNLOCKED;
 }
 
@@ -73,7 +74,7 @@
        __cpu_simple_lock_t *lockp;
 {
 #if defined (DEBUG)
-#if defined(DDB)       
+#if defined(DDB)
        int spincount = 0;
        int cpu = cpu_number();
        int limit = spin_limit * (cpu + 1);
@@ -86,8 +87,8 @@
 #endif
 #endif
 
-       while (i386_atomic_testset_i(lockp, __SIMPLELOCK_LOCKED)
-           == __SIMPLELOCK_LOCKED) {
+       while (i386_atomic_testset_i(lockp, __SIMPLELOCK_LOCKED) ==
+           __SIMPLELOCK_LOCKED) {
 #if defined(DEBUG) && defined(DDB)
                spincount++;
                if (spincount == limit) {
@@ -95,10 +96,11 @@
                        spincount = 0;
 
                        if (db_active) {
-                               db_printf("cpu%d: spinout while in debugger\n", cpu);
+                               db_printf("cpu%d: spinout while in debugger\n",
+                                   cpu);
                                while (db_active)
                                        ;
-                       } 
+                       }
                        db_printf("cpu%d: spinout\n", cpu);
                        Debugger();
                }
@@ -116,12 +118,12 @@
 {
 #ifdef DEBUG
        __cpu_simple_lock_t v = *lockp;
-       
+
        KASSERT((v == __SIMPLELOCK_LOCKED) || (v == __SIMPLELOCK_UNLOCKED));
 #endif
 
-       if (i386_atomic_testset_i(lockp, __SIMPLELOCK_LOCKED)
-           == __SIMPLELOCK_UNLOCKED)
+       if (i386_atomic_testset_i(lockp, __SIMPLELOCK_LOCKED) ==
+           __SIMPLELOCK_UNLOCKED)
                return (1);
        return (0);
 }
@@ -132,7 +134,7 @@
 {
 #ifdef DEBUG
        __cpu_simple_lock_t v = *lockp;
-       
+
        KASSERT((v == __SIMPLELOCK_LOCKED) || (v == __SIMPLELOCK_UNLOCKED));
 #endif
 



Home | Main Index | Thread Index | Old Index