Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57178
b: refs/heads/master
c: 1fb8812
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and David S. Miller committed May 31, 2007
1 parent 84a0479 commit 12fc6ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: dbbe3cb8cff6b494ac2cba6a94dc7aabe7e5b635
refs/heads/master: 1fb8812ba5a4c34b680d4405216310233f3c7573
4 changes: 2 additions & 2 deletions trunk/arch/sparc/lib/atomic32.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ unsigned long __cmpxchg_u32(volatile u32 *ptr, u32 old, u32 new)
unsigned long flags;
u32 prev;

spin_lock_irqsave(ATOMIC_HASH(addr), flags);
spin_lock_irqsave(ATOMIC_HASH(ptr), flags);
if ((prev = *ptr) == old)
*ptr = new;
spin_unlock_irqrestore(ATOMIC_HASH(addr), flags);
spin_unlock_irqrestore(ATOMIC_HASH(ptr), flags);

return (unsigned long)prev;
}
Expand Down

0 comments on commit 12fc6ac

Please sign in to comment.