Module Name: src Committed By: matt Date: Mon Feb 15 03:11:58 UTC 2010
Modified Files: src/sys/arch/mips/include [matt-nb5-mips64]: lock.h Log Message: In SIMPLELOCK_LOCKED_P check against != UNLOCKED instead of == LOCKED. This is so the compiler can emit a bnez instead of loading 1 into a register and then doing beq. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.16.16.1 src/sys/arch/mips/include/lock.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mips/include/lock.h diff -u src/sys/arch/mips/include/lock.h:1.16 src/sys/arch/mips/include/lock.h:1.16.16.1 --- src/sys/arch/mips/include/lock.h:1.16 Mon Apr 28 20:23:28 2008 +++ src/sys/arch/mips/include/lock.h Mon Feb 15 03:11:58 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: lock.h,v 1.16 2008/04/28 20:23:28 martin Exp $ */ +/* $NetBSD: lock.h,v 1.16.16.1 2010/02/15 03:11:58 matt Exp $ */ /*- * Copyright (c) 2001, 2007 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ static __inline int __SIMPLELOCK_LOCKED_P(__cpu_simple_lock_t *__ptr) { - return *__ptr == __SIMPLELOCK_LOCKED; + return *__ptr != __SIMPLELOCK_UNLOCKED; } static __inline int