diff options
author | jhb <jhb@FreeBSD.org> | 2005-01-05 21:13:27 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-01-05 21:13:27 +0000 |
commit | 65d4d80800169bac83dae081a87e3d9e14719043 (patch) | |
tree | 08a77e52d9c917cc5536ec8885e05c9cb42f5cd1 /sys/arm | |
parent | 90af8e5e9ad80d28a3fa66629927c8b4848f0bd5 (diff) | |
download | FreeBSD-src-65d4d80800169bac83dae081a87e3d9e14719043.zip FreeBSD-src-65d4d80800169bac83dae081a87e3d9e14719043.tar.gz |
Rework the optimization for spinlocks on UP to be slightly less drastic and
turn it back on. Specifically, the actual changes are now less intrusive
in that the _get_spin_lock() and _rel_spin_lock() macros now have their
contents changed for UP vs SMP kernels which centralizes the changes.
Also, UP kernels do not use _mtx_lock_spin() and no longer include it. The
UP versions of the spin lock functions do not use any atomic operations,
but simple compares and stores which allow mtx_owned() to still work for
spin locks while removing the overhead of atomic operations.
Tested on: i386, alpha
Diffstat (limited to 'sys/arm')
0 files changed, 0 insertions, 0 deletions