Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc Move `DIAGNOSTIC || LOCKDEBUG'-only loc...
details: https://anonhg.NetBSD.org/src/rev/cec498474830
branches: trunk
changeset: 493935:cec498474830
user: pk <pk%NetBSD.org@localhost>
date: Tue Jun 27 16:51:44 2000 +0000
description:
Move `DIAGNOSTIC || LOCKDEBUG'-only lock counters to the end of the cpu_info
structure, Just In Case.
diffstat:
sys/arch/sparc/sparc/cpuvar.h | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r dcdc6723939b -r cec498474830 sys/arch/sparc/sparc/cpuvar.h
--- a/sys/arch/sparc/sparc/cpuvar.h Tue Jun 27 16:46:54 2000 +0000
+++ b/sys/arch/sparc/sparc/cpuvar.h Tue Jun 27 16:51:44 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuvar.h,v 1.28 2000/06/06 07:56:40 pk Exp $ */
+/* $NetBSD: cpuvar.h,v 1.29 2000/06/27 16:51:44 pk Exp $ */
/*
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -137,10 +137,6 @@
struct cpu_info {
struct schedstate_percpu ci_schedstate; /* scheduler state */
-#if defined(DIAGNOSTIC) || defined(LOCKDEBUG)
- u_long ci_spin_locks; /* # of spin locks held */
- u_long ci_simple_locks; /* # of simple locks held */
-#endif
/*
* SPARC cpu_info structures live at two VAs: one global
@@ -288,7 +284,7 @@
void (*zero_page)__P((paddr_t));
void (*copy_page)__P((paddr_t, paddr_t));
-#ifdef SUN4M
+#if 0
/* hardware-assisted block operation routines */
void (*hwbcopy)
__P((const void *from, void *to, size_t len));
@@ -306,6 +302,11 @@
/* Inter-processor message area */
struct xpmsg msg;
+
+#if defined(DIAGNOSTIC) || defined(LOCKDEBUG)
+ u_long ci_spin_locks; /* # of spin locks held */
+ u_long ci_simple_locks; /* # of simple locks held */
+#endif
};
/*
Home |
Main Index |
Thread Index |
Old Index