Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Make KERNEL_LOCKED_P() work for !defined(MULTIPROCES...
details: https://anonhg.NetBSD.org/src/rev/eba4e1eaf9e6
branches: trunk
changeset: 771643:eba4e1eaf9e6
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Nov 27 03:52:38 2011 +0000
description:
Make KERNEL_LOCKED_P() work for !defined(MULTIPROCESSOR) && !defined(_MODULE).
diffstat:
sys/sys/systm.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 01afbc6a4525 -r eba4e1eaf9e6 sys/sys/systm.h
--- a/sys/sys/systm.h Sun Nov 27 03:25:00 2011 +0000
+++ b/sys/sys/systm.h Sun Nov 27 03:52:38 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systm.h,v 1.253 2011/11/27 03:24:00 jmcneill Exp $ */
+/* $NetBSD: systm.h,v 1.254 2011/11/27 03:52:38 jakllsch Exp $ */
/*-
* Copyright (c) 1982, 1988, 1991, 1993
@@ -509,7 +509,7 @@
#else
#define KERNEL_LOCK(count, lwp) do {(void)(count); (void)(lwp);} while (/* CONSTCOND */ 0) /*NOP*/
#define KERNEL_UNLOCK(all, lwp, ptr) do {(void)(all); (void)(lwp); (void)(ptr);} while (/* CONSTCOND */ 0) /*NOP*/
-#define KERNEL_LOCKED_P() do { } while (/* CONSTCOND */ 0) /*NOP*/
+#define KERNEL_LOCKED_P() (true)
#endif
#define KERNEL_UNLOCK_LAST(l) KERNEL_UNLOCK(-1, (l), NULL)
Home |
Main Index |
Thread Index |
Old Index