[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src

Module name:	src
Changes by:	miod_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2007/10/27 14:35:21

Modified files:
	sys/arch/m88k/include: lock.h 

Log message:
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.