Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351134
b: refs/heads/master
c: 20e260b
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Jan 28, 2013
1 parent f11e166 commit 9424e18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 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: 0a301110b7bd33ef10164c184fe2c1d8c4c3ab6b
refs/heads/master: 20e260b6f4f717c100620122f626a2c06a4cfd72
16 changes: 1 addition & 15 deletions trunk/arch/arm/include/asm/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,8 @@ static inline int arch_spin_trylock(arch_spinlock_t *lock)

static inline void arch_spin_unlock(arch_spinlock_t *lock)
{
unsigned long tmp;
u32 slock;

smp_mb();

__asm__ __volatile__(
" mov %1, #1\n"
"1: ldrex %0, [%2]\n"
" uadd16 %0, %0, %1\n"
" strex %1, %0, [%2]\n"
" teq %1, #0\n"
" bne 1b"
: "=&r" (slock), "=&r" (tmp)
: "r" (&lock->slock)
: "cc");

lock->tickets.owner++;
dsb_sev();
}

Expand Down

0 comments on commit 9424e18

Please sign in to comment.