diff options
author | jhb <jhb@FreeBSD.org> | 2002-07-27 16:54:23 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-07-27 16:54:23 +0000 |
commit | 2f0789c8efca1c11cc0cea49e7f39f59b738bc5a (patch) | |
tree | 3893cf0dd39e6f9d6b1b699e7a31ef005336ef4a /sys/sys | |
parent | bd850b6750dc5f4a88ca306b90f16ac63e5e602c (diff) | |
download | FreeBSD-src-2f0789c8efca1c11cc0cea49e7f39f59b738bc5a.zip FreeBSD-src-2f0789c8efca1c11cc0cea49e7f39f59b738bc5a.tar.gz |
Disable optimization of spinlocks on UP kernels w/o debugging for now
since it breaks mtx_owned() on spin mutexes when used outside of
mtx_assert(). Unfortunately we currently use it in the i386 MD code
and in the sio(4) driver.
Reported by: bde
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/mutex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 004b992..d5649d3 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -263,7 +263,7 @@ extern int mtx_pool_valid; _get_sleep_lock((m), curthread, (opts), LOCK_FILE, LOCK_LINE) #define mtx_unlock_flags(m, opts) \ _rel_sleep_lock((m), curthread, (opts), LOCK_FILE, LOCK_LINE) -#ifdef SMP +#ifndef SMPnotyet #define mtx_lock_spin_flags(m, opts) \ _get_spin_lock((m), curthread, (opts), LOCK_FILE, LOCK_LINE) #define mtx_unlock_spin_flags(m, opts) \ |