Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/jmcneill-usbmp]: src/sys/rump/librump/rumpkern pull across from -current:
details: https://anonhg.NetBSD.org/src/rev/7ed55ebec8af
branches: jmcneill-usbmp
changeset: 771804:7ed55ebec8af
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Feb 20 22:36:11 2012 +0000
description:
pull across from -current:
>add a _kernel_locked_p().
diffstat:
sys/rump/librump/rumpkern/klock.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r d78424d3fb95 -r 7ed55ebec8af sys/rump/librump/rumpkern/klock.c
--- a/sys/rump/librump/rumpkern/klock.c Mon Feb 20 20:35:40 2012 +0000
+++ b/sys/rump/librump/rumpkern/klock.c Mon Feb 20 22:36:11 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: klock.c,v 1.3 2010/12/01 14:59:38 pooka Exp $ */
+/* $NetBSD: klock.c,v 1.3.12.1 2012/02/20 22:36:11 mrg Exp $ */
/*
* Copyright (c) 2007-2010 Antti Kantee. All Rights Reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: klock.c,v 1.3 2010/12/01 14:59:38 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: klock.c,v 1.3.12.1 2012/02/20 22:36:11 mrg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -117,6 +117,13 @@
}
}
+bool
+_kernel_locked_p(void)
+{
+
+ return giantowner == curlwp;
+}
+
void
rump_user_unschedule(int nlocks, int *countp, void *interlock)
{
Home |
Main Index |
Thread Index |
Old Index