Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern gardenizing rump.c: move rump_lock...



details:   https://anonhg.NetBSD.org/src/rev/bb579ec033ea
branches:  trunk
changeset: 328953:bb579ec033ea
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Apr 25 18:13:59 2014 +0000

description:
gardenizing rump.c: move rump_lockdebug to locks.c

diffstat:

 sys/rump/librump/rumpkern/locks.c |  10 ++++++++--
 sys/rump/librump/rumpkern/rump.c  |   9 ++-------
 2 files changed, 10 insertions(+), 9 deletions(-)

diffs (61 lines):

diff -r 650cade115da -r bb579ec033ea sys/rump/librump/rumpkern/locks.c
--- a/sys/rump/librump/rumpkern/locks.c Fri Apr 25 18:10:21 2014 +0000
+++ b/sys/rump/librump/rumpkern/locks.c Fri Apr 25 18:13:59 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locks.c,v 1.68 2014/03/11 00:59:38 pooka Exp $ */
+/*     $NetBSD: locks.c,v 1.69 2014/04/25 18:13:59 pooka Exp $ */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.68 2014/03/11 00:59:38 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.69 2014/04/25 18:13:59 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -37,6 +37,12 @@
 
 #include "rump_private.h"
 
+#ifdef LOCKDEBUG
+const int rump_lockdebug = 1;
+#else
+const int rump_lockdebug = 0;
+#endif
+
 /*
  * Simple lockdebug.  If it's compiled in, it's always active.
  * Currently available only for mtx/rwlock.
diff -r 650cade115da -r bb579ec033ea sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c  Fri Apr 25 18:10:21 2014 +0000
+++ b/sys/rump/librump/rumpkern/rump.c  Fri Apr 25 18:13:59 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.c,v 1.299 2014/04/25 13:20:45 pooka Exp $ */
+/*     $NetBSD: rump.c,v 1.300 2014/04/25 18:13:59 pooka Exp $ */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.299 2014/04/25 13:20:45 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.300 2014/04/25 18:13:59 pooka Exp $");
 
 #include <sys/systm.h>
 #define ELFSIZE ARCH_ELFSIZE
@@ -111,11 +111,6 @@
 
 static char rump_msgbuf[16*1024]; /* 16k should be enough for std rump needs */
 
-#ifdef LOCKDEBUG
-const int rump_lockdebug = 1;
-#else
-const int rump_lockdebug = 0;
-#endif
 bool rump_ttycomponent = false;
 
 static void



Home | Main Index | Thread Index | Old Index