On Tue, Jan 23, 2018 at 06:14:31PM +0100, Martin Pieuchot wrote: > On 23/01/18(Tue) 18:10, Mark Kettenis wrote: > > > Date: Tue, 23 Jan 2018 14:06:08 +0000 > > > From: Visa Hankala <v...@openbsd.org> > > > > > > On Mon, Jan 22, 2018 at 11:12:13AM +0100, Martin Pieuchot wrote: > > > > Diff below moves the common mutex implementation to kern/ and enable it > > > > for > > > > alpha, amd64, arm64, i386, mips64, powerpc. > > > > > > Your diff seems to miss the necessary bits in <sys/mutex.h>. > > > In addition, you should put the common mutex code into kern_mutex.c. > > > Lets keep kern_lock.c for the mplock only.
got me thinking "Why?", but i'm not sure where i've got the impression that aiming towards GENERIC == GENERIC.MP is/was desirable direction. > > > > Right. I believe kern_lock.c is only included in NULTIPROCESSOR kernels. > > It is not, however kern_mutex.c is only included in WITNESS kernels. > just noise:) -Artturi