diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-10-05 12:53:55 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-10-05 12:53:55 +0000 |
commit | 5c7460ee3a06819bc455611fa2768b24c65f81e9 (patch) | |
tree | a31f2d70e2964f2e4a8fc1ba8baeb28fef881ba6 | |
parent | 7eb8b21b4a1da923eeb7592d7cc0169dce77a76b (diff) |
Fix the fix.
-rw-r--r-- | include/asm-mips/semaphore-helper.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-mips/semaphore-helper.h b/include/asm-mips/semaphore-helper.h index 80ac58008..c183834e7 100644 --- a/include/asm-mips/semaphore-helper.h +++ b/include/asm-mips/semaphore-helper.h @@ -1,5 +1,4 @@ -/* $Id: semaphore-helper.h,v 1.6 1999/10/20 21:10:58 ralf Exp $ - * +/* * SMP- and interrupt-safe semaphores helper functions. * * (C) Copyright 1996 Linus Torvalds @@ -75,6 +74,7 @@ static inline int waking_non_zero_trylock(struct semaphore *sem) ret = 0; } restore_flags(flags); + return ret; } @@ -92,7 +92,7 @@ waking_non_zero(struct semaphore *sem) "sc\t%0, %2\n\t" "beqz\t%0, 1b\n\t" "2:" - : "=r"(ret), "=r"(tmp), "=m"(&sem->waking) + : "=r" (ret), "=r" (tmp), "=m" (sem->waking) : "0"(0)); return ret; |