Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 02/19/2007 22:14:16
Module Name:	src
Committed By:	dsl
Date:		Mon Feb 19 22:14:16 UTC 2007

Modified Files:
	src/sys/kern: kern_synch.c

Log Message:
Revert 'optimisation' added in rev 1.179.
On i386 (at least) gcc manages two generate two forwards branches which are not
usually taken for the old code, and one forwards branch that is usually taken
for my 'improved version'.  Since (IIRC) both athlon and P4 will predict
forwards branches 'not taken' the old code is likely to be faster :-(
Faster variants exist, especially ones using the cmov instruction.


To generate a diff of this commit:
cvs rdiff -r1.180 -r1.181 src/sys/kern/kern_synch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.