Source-Changes-HG archive

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

[src/trunk]: src/sys/sys make this kmemuser friendly.



details:   https://anonhg.NetBSD.org/src/rev/ea01978ed3fd
branches:  trunk
changeset: 806192:ea01978ed3fd
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 08 19:39:09 2015 +0000

description:
make this kmemuser friendly.

diffstat:

 sys/sys/sleepq.h |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 79b88be3e791 -r ea01978ed3fd sys/sys/sleepq.h
--- a/sys/sys/sleepq.h  Sun Feb 08 19:22:45 2015 +0000
+++ b/sys/sys/sleepq.h  Sun Feb 08 19:39:09 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sleepq.h,v 1.23 2014/04/24 12:04:28 pooka Exp $        */
+/*     $NetBSD: sleepq.h,v 1.24 2015/02/08 19:39:09 christos Exp $     */
 
 /*-
  * Copyright (c) 2002, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
 
 void   sleepq_init(sleepq_t *);
 void   sleepq_remove(sleepq_t *, lwp_t *);
-void   sleepq_enqueue(sleepq_t *, wchan_t, const char *, syncobj_t *);
+void   sleepq_enqueue(sleepq_t *, wchan_t, const char *, struct syncobj *);
 void   sleepq_unsleep(lwp_t *, bool);
 void   sleepq_timeout(void *);
 void   sleepq_wake(sleepq_t *, wchan_t, u_int, kmutex_t *);
@@ -74,6 +74,7 @@
 
 extern sleeptab_t      sleeptab;
 
+#ifdef _KERNEL
 /*
  * Return non-zero if it is unsafe to sleep.
  *
@@ -128,6 +129,7 @@
        lwp_unlock_to(l, mp);
        KERNEL_UNLOCK_ALL(NULL, &l->l_biglocks);
 }
+#endif
 
 /*
  * Turnstiles, specialized sleep queues for use by kernel locks.



Home | Main Index | Thread Index | Old Index