Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha Protect microtime_slock appropriately.



details:   https://anonhg.NetBSD.org/src/rev/e9d45352408c
branches:  trunk
changeset: 499468:e9d45352408c
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Nov 20 20:37:52 2000 +0000

description:
Protect microtime_slock appropriately.

diffstat:

 sys/arch/alpha/alpha/machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 8a8033f0648b -r e9d45352408c sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c    Mon Nov 20 20:23:07 2000 +0000
+++ b/sys/arch/alpha/alpha/machdep.c    Mon Nov 20 20:37:52 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.222 2000/11/19 19:16:44 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.223 2000/11/20 20:37:52 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.222 2000/11/19 19:16:44 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.223 2000/11/20 20:37:52 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1912,8 +1912,10 @@
        register struct timeval *tvp;
 {
        static struct timeval lasttime;
+#if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)
        static struct simplelock microtime_slock =
            SIMPLELOCK_INITIALIZER;
+#endif
        int s;
 
        s = splclock();



Home | Main Index | Thread Index | Old Index