Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpkern comment
details: https://anonhg.NetBSD.org/src/rev/58354f44ba71
branches: trunk
changeset: 770738:58354f44ba71
user: yamt <yamt%NetBSD.org@localhost>
date: Mon Oct 31 13:17:22 2011 +0000
description:
comment
diffstat:
sys/rump/librump/rumpkern/scheduler.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r c96e262df14b -r 58354f44ba71 sys/rump/librump/rumpkern/scheduler.c
--- a/sys/rump/librump/rumpkern/scheduler.c Mon Oct 31 13:16:01 2011 +0000
+++ b/sys/rump/librump/rumpkern/scheduler.c Mon Oct 31 13:17:22 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scheduler.c,v 1.26 2011/03/21 16:41:09 pooka Exp $ */
+/* $NetBSD: scheduler.c,v 1.27 2011/10/31 13:17:22 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.26 2011/03/21 16:41:09 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scheduler.c,v 1.27 2011/10/31 13:17:22 yamt Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -219,6 +219,10 @@
rumpuser_mutex_exit(lwp0mtx);
}
+/*
+ * rump_schedule: ensure that the calling host thread has a valid lwp context.
+ * ie. ensure that rumpuser_get_curlwp() != NULL.
+ */
void
rump_schedule()
{
Home |
Main Index |
Thread Index |
Old Index