1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-04 17:15:50 +00:00
John Baldwin 33fb8a386e 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
2005-01-05 21:13:27 +00:00
..
2004-12-21 12:32:15 +00:00
2004-12-06 19:46:02 +00:00
2005-01-04 18:54:40 +00:00
2005-01-04 07:52:26 +00:00
2004-11-09 16:47:47 +00:00
2004-12-28 00:07:57 +00:00
2004-11-10 07:16:59 +00:00
2004-11-17 09:09:55 +00:00
2004-12-30 18:31:53 +00:00
2004-12-14 21:35:00 +00:00