implement a rump version of kpreempt_disabled yamt-pagecache
authoryamt <yamt@NetBSD.org>
Wed, 30 Nov 2011 14:36:36 +0000
branchyamt-pagecache
changeset 280328 c6d2c78a51ff
parent 280327 7d8e40741f6b
child 280329 13ba88b4af2f
implement a rump version of kpreempt_disabled
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)
 {