Module Name: src
Committed By: yamt
Date: Fri Dec 2 12:31:03 UTC 2011
Modified Files:
src/sys/kern: kern_runq.c
Log Message:
comments
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/kern/kern_runq.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/kern/kern_runq.c
diff -u src/sys/kern/kern_runq.c:1.32 src/sys/kern/kern_runq.c:1.33
--- src/sys/kern/kern_runq.c:1.32 Sun Aug 7 21:13:05 2011
+++ src/sys/kern/kern_runq.c Fri Dec 2 12:31:03 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_runq.c,v 1.32 2011/08/07 21:13:05 rmind Exp $ */
+/* $NetBSD: kern_runq.c,v 1.33 2011/12/02 12:31:03 yamt Exp $ */
/*
* Copyright (c) 2007, 2008 Mindaugas Rasiukevicius <rmind at NetBSD org>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_runq.c,v 1.32 2011/08/07 21:13:05 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_runq.c,v 1.33 2011/12/02 12:31:03 yamt Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -638,6 +638,10 @@ no_migration:
#else
+/*
+ * stubs for !MULTIPROCESSOR
+ */
+
struct cpu_info *
sched_takecpu(struct lwp *l)
{
@@ -760,6 +764,10 @@ sched_nextlwp(void)
return l;
}
+/*
+ * sched_curcpu_runnable_p: return if curcpu() should exit the idle loop.
+ */
+
bool
sched_curcpu_runnable_p(void)
{