Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-pagecache]: src/sys/rump/librump/rumpkern implement a rump version ...
details: https://anonhg.NetBSD.org/src/rev/7992f70cc9ea
branches: yamt-pagecache
changeset: 770843:7992f70cc9ea
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Nov 30 14:36:36 2011 +0000
description:
implement a rump version of kpreempt_disabled
diffstat:
sys/rump/librump/rumpkern/scheduler.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 694ca54e6e57 -r 7992f70cc9ea sys/rump/librump/rumpkern/scheduler.c
--- a/sys/rump/librump/rumpkern/scheduler.c Wed Nov 30 14:33:46 2011 +0000
+++ b/sys/rump/librump/rumpkern/scheduler.c Wed Nov 30 14:36:36 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scheduler.c,v 1.27 2011/10/31 13:17:22 yamt Exp $ */
+/* $NetBSD: scheduler.c,v 1.27.2.1 2011/11/30 14:36:36 yamt Exp $ */
/*
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scheduler.c,v 1.27 2011/10/31 13:17:22 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scheduler.c,v 1.27.2.1 2011/11/30 14:36:36 yamt Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -512,6 +512,13 @@
KPREEMPT_ENABLE(curlwp);
}
+bool
+kpreempt_disabled(void)
+{
+
+ return true;
+}
+
void
suspendsched(void)
{
Home |
Main Index |
Thread Index |
Old Index