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 Set attached cpus as running, othe...
details: https://anonhg.NetBSD.org/src/rev/d4df2418c6a5
branches: trunk
changeset: 751132:d4df2418c6a5
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Jan 25 18:37:51 2010 +0000
description:
Set attached cpus as running, otherwise (evil) state-probing code
will not execute properly.
diffstat:
sys/rump/librump/rumpkern/scheduler.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 5070f955866e -r d4df2418c6a5 sys/rump/librump/rumpkern/scheduler.c
--- a/sys/rump/librump/rumpkern/scheduler.c Mon Jan 25 18:25:08 2010 +0000
+++ b/sys/rump/librump/rumpkern/scheduler.c Mon Jan 25 18:37:51 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scheduler.c,v 1.8 2009/12/01 09:50:51 pooka Exp $ */
+/* $NetBSD: scheduler.c,v 1.9 2010/01/25 18:37:51 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scheduler.c,v 1.8 2009/12/01 09:50:51 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scheduler.c,v 1.9 2010/01/25 18:37:51 pooka Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -87,6 +87,7 @@
rump_cpu_bootstrap(ci);
ci->ci_schedstate.spc_mutex =
mutex_obj_alloc(MUTEX_DEFAULT, IPL_NONE);
+ ci->ci_schedstate.spc_flags = SPCF_RUNNING;
rcpu->rcpu_ci = ci;
LIST_INSERT_HEAD(&cpu_freelist, rcpu, rcpu_entries);
rcpu->rcpu_flags = RCPU_FREELIST;
Home |
Main Index |
Thread Index |
Old Index