Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288433
b: refs/heads/master
c: cf8c1da
h: refs/heads/master
i:
  288431: b414804
v: v3
  • Loading branch information
roel authored and Chris Metcalf committed Mar 12, 2012
1 parent 3ef42e9 commit 71726f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ed725cf5d21f07da5f01dfe9ffbf5327f899b59
refs/heads/master: cf8c1dafe19ae9f855bf7b9cce2e13b26c3289b7
2 changes: 1 addition & 1 deletion trunk/arch/tile/lib/spinlock_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void arch_read_unlock(arch_rwlock_t *rwlock)
for (;;) {
__insn_mtspr(SPR_INTERRUPT_CRITICAL_SECTION, 1);
val = __insn_tns((int *)&rwlock->lock);
if (likely(val & 1) == 0) {
if (likely((val & 1) == 0)) {
rwlock->lock = val - (1 << _RD_COUNT_SHIFT);
__insn_mtspr(SPR_INTERRUPT_CRITICAL_SECTION, 0);
break;
Expand Down

0 comments on commit 71726f1

Please sign in to comment.