diff options
author | 2007-11-26 17:15:29 +0000 | |
---|---|---|
committer | 2007-11-26 17:15:29 +0000 | |
commit | 7ad2b02120c55b67d13e8b1b155dc14bf64cfa9e (patch) | |
tree | c2d4d2501bbaab6851e647e630e2a1aa9fbe2709 /sys/kern/kern_sched.c | |
parent | Constify the output of the emulops translate() function, as well as the (diff) | |
download | wireguard-openbsd-7ad2b02120c55b67d13e8b1b155dc14bf64cfa9e.tar.xz wireguard-openbsd-7ad2b02120c55b67d13e8b1b155dc14bf64cfa9e.zip |
Move the implementation of __mp_lock (biglock) into machine dependent
code. At this moment all architectures get the copy of the old code
except i386 which gets a new shiny implementation that doesn't spin
at splhigh (doh!) and doesn't try to grab the biglock when releasing
the biglock (double doh!).
Shaves 10% of system time during kernel compile and might solve a few
bugs as a bonus.
Other architectures coming shortly.
miod@ deraadt@ ok
Diffstat (limited to 'sys/kern/kern_sched.c')
-rw-r--r-- | sys/kern/kern_sched.c | 4 |
1 files changed, 2 insertions, 2 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 } |