Module Name:    src
Committed By:   yamt
Date:           Wed Nov 30 14:36:37 UTC 2011

Modified Files:
        src/sys/rump/librump/rumpkern [yamt-pagecache]: scheduler.c

Log Message:
implement a rump version of kpreempt_disabled


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.27.2.1 src/sys/rump/librump/rumpkern/scheduler.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/scheduler.c
diff -u src/sys/rump/librump/rumpkern/scheduler.c:1.27 src/sys/rump/librump/rumpkern/scheduler.c:1.27.2.1
--- src/sys/rump/librump/rumpkern/scheduler.c:1.27	Mon Oct 31 13:17:22 2011
+++ src/sys/rump/librump/rumpkern/scheduler.c	Wed Nov 30 14:36:36 2011
@@ -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(void)
 	KPREEMPT_ENABLE(curlwp);
 }
 
+bool
+kpreempt_disabled(void)
+{
+
+	return true;
+}
+
 void
 suspendsched(void)
 {

Reply via email to