diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /include/asm-i386/mutex.h | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'include/asm-i386/mutex.h')
| -rw-r--r-- | include/asm-i386/mutex.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-i386/mutex.h b/include/asm-i386/mutex.h index 9b2199e829f3..05a538531229 100644 --- a/include/asm-i386/mutex.h +++ b/include/asm-i386/mutex.h | |||
| @@ -9,6 +9,8 @@ | |||
| 9 | #ifndef _ASM_MUTEX_H | 9 | #ifndef _ASM_MUTEX_H |
| 10 | #define _ASM_MUTEX_H | 10 | #define _ASM_MUTEX_H |
| 11 | 11 | ||
| 12 | #include "asm/alternative.h" | ||
| 13 | |||
| 12 | /** | 14 | /** |
| 13 | * __mutex_fastpath_lock - try to take the lock by moving the count | 15 | * __mutex_fastpath_lock - try to take the lock by moving the count |
| 14 | * from 1 to a 0 value | 16 | * from 1 to a 0 value |
| @@ -27,7 +29,7 @@ do { \ | |||
| 27 | typecheck_fn(fastcall void (*)(atomic_t *), fail_fn); \ | 29 | typecheck_fn(fastcall void (*)(atomic_t *), fail_fn); \ |
| 28 | \ | 30 | \ |
| 29 | __asm__ __volatile__( \ | 31 | __asm__ __volatile__( \ |
| 30 | LOCK " decl (%%eax) \n" \ | 32 | LOCK_PREFIX " decl (%%eax) \n" \ |
| 31 | " js 2f \n" \ | 33 | " js 2f \n" \ |
| 32 | "1: \n" \ | 34 | "1: \n" \ |
| 33 | \ | 35 | \ |
| @@ -83,7 +85,7 @@ do { \ | |||
| 83 | typecheck_fn(fastcall void (*)(atomic_t *), fail_fn); \ | 85 | typecheck_fn(fastcall void (*)(atomic_t *), fail_fn); \ |
| 84 | \ | 86 | \ |
| 85 | __asm__ __volatile__( \ | 87 | __asm__ __volatile__( \ |
| 86 | LOCK " incl (%%eax) \n" \ | 88 | LOCK_PREFIX " incl (%%eax) \n" \ |
| 87 | " jle 2f \n" \ | 89 | " jle 2f \n" \ |
| 88 | "1: \n" \ | 90 | "1: \n" \ |
| 89 | \ | 91 | \ |
