patch-2.4.10 linux/include/asm-mips/semaphore.h
Next file: linux/include/asm-mips/sgidefs.h
Previous file: linux/include/asm-mips/semaphore-helper.h
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Sun Sep 9 10:43:01 2001
- Orig file:
v2.4.9/linux/include/asm-mips/semaphore.h
- Orig date:
Tue Jul 3 17:08:21 2001
diff -u --recursive --new-file v2.4.9/linux/include/asm-mips/semaphore.h linux/include/asm-mips/semaphore.h
@@ -6,9 +6,9 @@
* for more details.
*
* (C) Copyright 1996 Linus Torvalds
- * (C) Copyright 1998, 1999, 2000 Ralf Baechle
+ * (C) Copyright 1998, 99, 2000, 01 Ralf Baechle
* (C) Copyright 1999, 2000 Silicon Graphics, Inc.
- * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
+ * Copyright (C) 2000, 01 MIPS Technologies, Inc. All rights reserved.
*/
#ifndef _ASM_SEMAPHORE_H
#define _ASM_SEMAPHORE_H
@@ -106,7 +106,7 @@
return ret;
}
-#if !defined(CONFIG_CPU_HAS_LLSC) || defined(CONFIG_CPU_MIPS32)
+#ifndef CONFIG_CPU_HAS_LLDSCD
static inline int down_trylock(struct semaphore * sem)
{
@@ -171,7 +171,7 @@
return ret;
}
-#endif
+#endif /* CONFIG_CPU_HAS_LLDSCD */
/*
* Note! This is subtle. We jump to wake people up only if
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)