diff options
Diffstat (limited to 'arch/mips/include/asm/local.h')
-rw-r--r-- | arch/mips/include/asm/local.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/include/asm/local.h b/arch/mips/include/asm/local.h index f96fd59e0845..361f4f16c30c 100644 --- a/arch/mips/include/asm/local.h +++ b/arch/mips/include/asm/local.h | |||
@@ -29,7 +29,7 @@ static __inline__ long local_add_return(long i, local_t * l) | |||
29 | { | 29 | { |
30 | unsigned long result; | 30 | unsigned long result; |
31 | 31 | ||
32 | if (cpu_has_llsc && R10000_LLSC_WAR) { | 32 | if (kernel_uses_llsc && R10000_LLSC_WAR) { |
33 | unsigned long temp; | 33 | unsigned long temp; |
34 | 34 | ||
35 | __asm__ __volatile__( | 35 | __asm__ __volatile__( |
@@ -43,7 +43,7 @@ static __inline__ long local_add_return(long i, local_t * l) | |||
43 | : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) | 43 | : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) |
44 | : "Ir" (i), "m" (l->a.counter) | 44 | : "Ir" (i), "m" (l->a.counter) |
45 | : "memory"); | 45 | : "memory"); |
46 | } else if (cpu_has_llsc) { | 46 | } else if (kernel_uses_llsc) { |
47 | unsigned long temp; | 47 | unsigned long temp; |
48 | 48 | ||
49 | __asm__ __volatile__( | 49 | __asm__ __volatile__( |
@@ -74,7 +74,7 @@ static __inline__ long local_sub_return(long i, local_t * l) | |||
74 | { | 74 | { |
75 | unsigned long result; | 75 | unsigned long result; |
76 | 76 | ||
77 | if (cpu_has_llsc && R10000_LLSC_WAR) { | 77 | if (kernel_uses_llsc && R10000_LLSC_WAR) { |
78 | unsigned long temp; | 78 | unsigned long temp; |
79 | 79 | ||
80 | __asm__ __volatile__( | 80 | __asm__ __volatile__( |
@@ -88,7 +88,7 @@ static __inline__ long local_sub_return(long i, local_t * l) | |||
88 | : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) | 88 | : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) |
89 | : "Ir" (i), "m" (l->a.counter) | 89 | : "Ir" (i), "m" (l->a.counter) |
90 | : "memory"); | 90 | : "memory"); |
91 | } else if (cpu_has_llsc) { | 91 | } else if (kernel_uses_llsc) { |
92 | unsigned long temp; | 92 | unsigned long temp; |
93 | 93 | ||
94 | __asm__ __volatile__( | 94 | __asm__ __volatile__( |