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 Don't NULL out l_cpu, l_stat is th...
details: https://anonhg.NetBSD.org/src/rev/2c16d56db4e5
branches: trunk
changeset: 761465:2c16d56db4e5
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Jan 28 18:48:21 2011 +0000
description:
Don't NULL out l_cpu, l_stat is the new rumpkernel way too.
diffstat:
sys/rump/librump/rumpkern/lwproc.c | 6 +++---
sys/rump/librump/rumpkern/rump.c | 5 ++---
2 files changed, 5 insertions(+), 6 deletions(-)
diffs (55 lines):
diff -r fe2e496625e7 -r 2c16d56db4e5 sys/rump/librump/rumpkern/lwproc.c
--- a/sys/rump/librump/rumpkern/lwproc.c Fri Jan 28 18:45:52 2011 +0000
+++ b/sys/rump/librump/rumpkern/lwproc.c Fri Jan 28 18:48:21 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lwproc.c,v 1.12 2011/01/28 16:58:28 pooka Exp $ */
+/* $NetBSD: lwproc.c,v 1.13 2011/01/28 18:48:21 pooka Exp $ */
/*
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lwproc.c,v 1.12 2011/01/28 16:58:28 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lwproc.c,v 1.13 2011/01/28 18:48:21 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -347,9 +347,9 @@
mutex_exit(newlwp->l_proc->p_lock);
l->l_mutex = &unruntime_lock;
- l->l_cpu = NULL;
l->l_pflag &= ~LP_RUNNING;
l->l_flag &= ~LW_PENDSIG;
+ l->l_stat = LSRUN;
if (l->l_flag & LW_WEXIT) {
lwproc_freelwp(l);
diff -r fe2e496625e7 -r 2c16d56db4e5 sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c Fri Jan 28 18:45:52 2011 +0000
+++ b/sys/rump/librump/rumpkern/rump.c Fri Jan 28 18:48:21 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump.c,v 1.224 2011/01/28 18:45:52 pooka Exp $ */
+/* $NetBSD: rump.c,v 1.225 2011/01/28 18:48:21 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.224 2011/01/28 18:45:52 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.225 2011/01/28 18:48:21 pooka Exp $");
#include <sys/systm.h>
#define ELFSIZE ARCH_ELFSIZE
@@ -346,7 +346,6 @@
rump_scheduler_init(numcpu);
/* revert temporary context and schedule a semireal context */
- l->l_cpu = NULL;
rumpuser_set_curlwp(NULL);
initproc = &proc0; /* borrow proc0 before we get initproc started */
rump_schedule();
Home |
Main Index |
Thread Index |
Old Index