Commit cf8c1daf authored by roel's avatar roel Committed by Chris Metcalf

arch/tile: misplaced parens near likely

Parentheses were missing.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 7ed725cf
...@@ -144,7 +144,7 @@ void arch_read_unlock(arch_rwlock_t *rwlock) ...@@ -144,7 +144,7 @@ void arch_read_unlock(arch_rwlock_t *rwlock)
for (;;) { for (;;) {
__insn_mtspr(SPR_INTERRUPT_CRITICAL_SECTION, 1); __insn_mtspr(SPR_INTERRUPT_CRITICAL_SECTION, 1);
val = __insn_tns((int *)&rwlock->lock); val = __insn_tns((int *)&rwlock->lock);
if (likely(val & 1) == 0) { if (likely((val & 1) == 0)) {
rwlock->lock = val - (1 << _RD_COUNT_SHIFT); rwlock->lock = val - (1 << _RD_COUNT_SHIFT);
__insn_mtspr(SPR_INTERRUPT_CRITICAL_SECTION, 0); __insn_mtspr(SPR_INTERRUPT_CRITICAL_SECTION, 0);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment