diff options
author | 2015-02-10 10:04:27 +0000 | |
---|---|---|
committer | 2015-02-10 10:04:27 +0000 | |
commit | d215fe4c08f2fab6dc7eeae46633900349b0a970 (patch) | |
tree | f1a7233204437ac2af0d7b0425eb74839b5a00d1 /sys/kern/kern_rwlock.c | |
parent | increase min address to page size for all remaining min == 0 systems. (diff) | |
download | wireguard-openbsd-d215fe4c08f2fab6dc7eeae46633900349b0a970.tar.xz wireguard-openbsd-d215fe4c08f2fab6dc7eeae46633900349b0a970.zip |
remove #ifndef handling of __HAVE_MD_RWLOCK. it's never set, and with a
reasonable compiler it isnt necessary.
ok miod@ art@
Diffstat (limited to 'sys/kern/kern_rwlock.c')
-rw-r--r-- | sys/kern/kern_rwlock.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c index bf90a4428be..f50cf65a033 100644 --- a/sys/kern/kern_rwlock.c +++ b/sys/kern/kern_rwlock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_rwlock.c,v 1.23 2014/09/01 03:37:10 guenther Exp $ */ +/* $OpenBSD: kern_rwlock.c,v 1.24 2015/02/10 10:04:27 dlg Exp $ */ /* * Copyright (c) 2002, 2003 Artur Grabowski <art@openbsd.org> @@ -74,10 +74,6 @@ static const struct rwlock_op { }, }; -#ifndef __HAVE_MD_RWLOCK -/* - * Simple cases that should be in MD code and atomic. - */ void rw_enter_read(struct rwlock *rwl) { @@ -140,8 +136,6 @@ rw_cas(volatile unsigned long *p, unsigned long o, unsigned long n) } #endif -#endif - #ifdef DIAGNOSTIC /* * Put the diagnostic functions here to keep the main code free |