diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-10-27 20:35:22 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-10-27 20:35:22 +0000 |
commit | 46e1c801d7a9835e871c570047964806aa7e6485 (patch) | |
tree | 9c9da3e7deb97c9f2e8c07ee64ebc115c4029194 /usr.sbin/config/mkmakefile.c | |
parent | 39826bed35d5224e115fe5fafa745276767e86a3 (diff) |
In __cpu_simple_lock() and __cpu_simple_lock_try(), use a local u_int instead
of a local __cpu_simple_lock_t (which is volatile), so that the compiler can
optimize it to a register, instead of using a memory location (and doing
stores into it when __cpu_simple_lock() is spinning).
This makes the MP code a bit smaller and a bit faster.
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
0 files changed, 0 insertions, 0 deletions