OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Artur Grabowski (artcvs.openbsd.org)
Date: Mon Nov 26 2007 - 11:15:29 CST


CVSROOT: /cvs
Module name: src
Changes by: artcvs.openbsd.org 2007/11/26 10:15:29

Modified files:
        sys/arch/i386/i386: lock_machdep.c
        sys/kern : kern_sched.c sched_bsd.c
        sys/sys : mplock.h
Added files:
        sys/arch/amd64/include: mplock.h
        sys/arch/i386/include: mplock.h
        sys/arch/macppc/include: mplock.h
        sys/arch/mvme88k/include: mplock.h
        sys/arch/sparc64/include: mplock.h

Log message:
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