aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/semaphore.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/semaphore.c')
-rw-r--r--arch/mips/kernel/semaphore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/semaphore.c b/arch/mips/kernel/semaphore.c
index dbb145ee00a7..1265358cdca1 100644
--- a/arch/mips/kernel/semaphore.c
+++ b/arch/mips/kernel/semaphore.c
@@ -42,7 +42,7 @@ static inline int __sem_update_count(struct semaphore *sem, int incr)
42 42
43 if (cpu_has_llsc && R10000_LLSC_WAR) { 43 if (cpu_has_llsc && R10000_LLSC_WAR) {
44 __asm__ __volatile__( 44 __asm__ __volatile__(
45 " .set mips2 \n" 45 " .set mips3 \n"
46 "1: ll %0, %2 # __sem_update_count \n" 46 "1: ll %0, %2 # __sem_update_count \n"
47 " sra %1, %0, 31 \n" 47 " sra %1, %0, 31 \n"
48 " not %1 \n" 48 " not %1 \n"
@@ -55,7 +55,7 @@ static inline int __sem_update_count(struct semaphore *sem, int incr)
55 : "r" (incr), "m" (sem->count)); 55 : "r" (incr), "m" (sem->count));
56 } else if (cpu_has_llsc) { 56 } else if (cpu_has_llsc) {
57 __asm__ __volatile__( 57 __asm__ __volatile__(
58 " .set mips2 \n" 58 " .set mips3 \n"
59 "1: ll %0, %2 # __sem_update_count \n" 59 "1: ll %0, %2 # __sem_update_count \n"
60 " sra %1, %0, 31 \n" 60 " sra %1, %0, 31 \n"
61 " not %1 \n" 61 " not %1 \n"