diff options
-rw-r--r-- | arch/tile/lib/spinlock_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/lib/spinlock_32.c b/arch/tile/lib/spinlock_32.c index cb0999fb64b4..b16ac49a968e 100644 --- a/arch/tile/lib/spinlock_32.c +++ b/arch/tile/lib/spinlock_32.c | |||
@@ -144,7 +144,7 @@ void arch_read_unlock(arch_rwlock_t *rwlock) | |||
144 | for (;;) { | 144 | for (;;) { |
145 | __insn_mtspr(SPR_INTERRUPT_CRITICAL_SECTION, 1); | 145 | __insn_mtspr(SPR_INTERRUPT_CRITICAL_SECTION, 1); |
146 | val = __insn_tns((int *)&rwlock->lock); | 146 | val = __insn_tns((int *)&rwlock->lock); |
147 | if (likely(val & 1) == 0) { | 147 | if (likely((val & 1) == 0)) { |
148 | rwlock->lock = val - (1 << _RD_COUNT_SHIFT); | 148 | rwlock->lock = val - (1 << _RD_COUNT_SHIFT); |
149 | __insn_mtspr(SPR_INTERRUPT_CRITICAL_SECTION, 0); | 149 | __insn_mtspr(SPR_INTERRUPT_CRITICAL_SECTION, 0); |
150 | break; | 150 | break; |