summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_sched.c4
-rw-r--r--sys/kern/sched_bsd.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/kern/kern_sched.c b/sys/kern/kern_sched.c
index 83c7240c739..84a66fa7510 100644
--- a/sys/kern/kern_sched.c
+++ b/sys/kern/kern_sched.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sched.c,v 1.1 2007/10/10 15:53:53 art Exp $ */
+/* $OpenBSD: kern_sched.c,v 1.2 2007/11/26 17:15:29 art Exp $ */
/*
* Copyright (c) 2007 Artur Grabowski <art@openbsd.org>
*
@@ -175,7 +175,7 @@ sched_init_runqueues(void)
TAILQ_INIT(&sched_qs[i]);
#ifdef MULTIPROCESSOR
- SIMPLE_LOCK_INIT(&sched_lock);
+ __mp_lock_init(&sched_lock);
#endif
}
diff --git a/sys/kern/sched_bsd.c b/sys/kern/sched_bsd.c
index 1954f3a3ce7..80d418201ba 100644
--- a/sys/kern/sched_bsd.c
+++ b/sys/kern/sched_bsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sched_bsd.c,v 1.14 2007/10/11 10:34:08 art Exp $ */
+/* $OpenBSD: sched_bsd.c,v 1.15 2007/11/26 17:15:29 art Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*-
@@ -57,7 +57,9 @@
int lbolt; /* once a second sleep address */
int rrticks_init; /* # of hardclock ticks per roundrobin() */
-struct SIMPLELOCK sched_lock;
+#ifdef MULTIPROCESSOR
+struct __mp_lock sched_lock;
+#endif
void scheduler_start(void);