Module Name: src Committed By: pooka Date: Mon Jan 25 18:37:51 UTC 2010
Modified Files: src/sys/rump/librump/rumpkern: scheduler.c Log Message: Set attached cpus as running, otherwise (evil) state-probing code will not execute properly. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/rump/librump/rumpkern/scheduler.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/rump/librump/rumpkern/scheduler.c diff -u src/sys/rump/librump/rumpkern/scheduler.c:1.8 src/sys/rump/librump/rumpkern/scheduler.c:1.9 --- src/sys/rump/librump/rumpkern/scheduler.c:1.8 Tue Dec 1 09:50:51 2009 +++ src/sys/rump/librump/rumpkern/scheduler.c Mon Jan 25 18:37:51 2010 @@ -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;