diff options
| author | pooka <pooka@NetBSD.org> | 2014-03-15 15:22:42 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2014-03-15 15:22:42 +0000 |
| commit | dbc5934fb402a3efb2dde95ea77fd2135f7f0ad9 (patch) | |
| tree | 9292870b8829aa688f1dad9b30009294a2f566d2 /sys | |
| parent | 9ff930019e671dfdb242bd0403ede82523b61a0b (diff) | |
Use uniprocessor-optimized locking in RUMP_LOCKS_UP=yes (default: no)
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/rump/librump/rumpkern/Makefile.rumpkern | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/rump/librump/rumpkern/Makefile.rumpkern b/sys/rump/librump/rumpkern/Makefile.rumpkern index fb66886b292..77888719320 100644 --- a/sys/rump/librump/rumpkern/Makefile.rumpkern +++ b/sys/rump/librump/rumpkern/Makefile.rumpkern @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.rumpkern,v 1.140 2014/03/13 01:34:06 pooka Exp $ +# $NetBSD: Makefile.rumpkern,v 1.141 2014/03/15 15:22:42 pooka Exp $ # .include "${RUMPTOP}/Makefile.rump" @@ -38,8 +38,11 @@ CPPFLAGS+= -DRUMP_KERNEL_IS_LIBC # Multiprocessor or uniprocessor locking. TODO: select right # locking at runtime. +.if ${RUMP_LOCKS_UP:Uno} == "yes" +SRCS+= locks_up.c +.else SRCS+= locks.c -#SRCS+= locks_up.c +.endif MKREPRO?=no |
