Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155209
b: refs/heads/master
c: aacf682
h: refs/heads/master
i:
  155207: 937a003
v: v3
  • Loading branch information
Eric Dumazet authored and Ingo Molnar committed Jul 3, 2009
1 parent c4ffaeb commit 971bdf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: b7882b7c65abb00194bdb3d4a22d27d70fcc59ba
refs/heads/master: aacf682fd8c66b57383c407eecd9d4a28264ee91
8 changes: 2 additions & 6 deletions trunk/arch/x86/lib/atomic64_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,9 @@ void atomic64_set(atomic64_t *ptr, u64 new_val)
*/
u64 atomic64_read(atomic64_t *ptr)
{
u64 curr_val;
u64 old = 1LL << 32;

do {
curr_val = __atomic64_read(ptr);
} while (atomic64_cmpxchg(ptr, curr_val, curr_val) != curr_val);

return curr_val;
return cmpxchg8b(&ptr->counter, old, old);
}

/**
Expand Down

0 comments on commit 971bdf0

Please sign in to comment.