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 Make sure spin mutexes get allocat...



details:   https://anonhg.NetBSD.org/src/rev/743464e77b60
branches:  trunk
changeset: 786395:743464e77b60
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Apr 27 22:26:57 2013 +0000

description:
Make sure spin mutexes get allocated as spin mutexes (the hypervisor
asserts it now).

diffstat:

 sys/rump/librump/rumpkern/scheduler.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 2a25bee101c4 -r 743464e77b60 sys/rump/librump/rumpkern/scheduler.c
--- a/sys/rump/librump/rumpkern/scheduler.c     Sat Apr 27 22:21:12 2013 +0000
+++ b/sys/rump/librump/rumpkern/scheduler.c     Sat Apr 27 22:26:57 2013 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: scheduler.c,v 1.31 2013/04/27 16:32:57 pooka Exp $    */
+/*      $NetBSD: scheduler.c,v 1.32 2013/04/27 22:26:57 pooka 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.31 2013/04/27 16:32:57 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scheduler.c,v 1.32 2013/04/27 22:26:57 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -165,14 +165,14 @@
                ci = &rump_cpus[i];
                rcpu->rcpu_ci = ci;
                ci->ci_schedstate.spc_mutex =
-                   mutex_obj_alloc(MUTEX_DEFAULT, IPL_NONE);
+                   mutex_obj_alloc(MUTEX_DEFAULT, IPL_SCHED);
                ci->ci_schedstate.spc_flags = SPCF_RUNNING;
                rcpu->rcpu_wanted = 0;
                rumpuser_cv_init(&rcpu->rcpu_cv);
                rumpuser_mutex_init(&rcpu->rcpu_mtx, RUMPUSER_MTX_SPIN);
        }
 
-       mutex_init(&unruntime_lock, MUTEX_DEFAULT, IPL_NONE);
+       mutex_init(&unruntime_lock, MUTEX_DEFAULT, IPL_SCHED);
 }
 
 /*



Home | Main Index | Thread Index | Old Index