Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6cba986298105a87a09d65baa2658fb5111459c6
Commit:     6cba986298105a87a09d65baa2658fb5111459c6
Parent:     71416bea5afa9e5a6c76c1509ab69c46c857a2bb
Author:     Andreas Schwab <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 10 23:42:59 2007 +0200
Committer:  Tony Luck <[EMAIL PROTECTED]>
CommitDate: Mon Aug 13 10:21:04 2007 -0700

    [IA64] Use atomic64_read to read an atomic64_t.
    
    The routines ia64_atomic64_{add,sub} mistakenly use
    atomic_read() to grab the old value instead of using
    atomic64_read().
    
    Signed-off-by: Andreas Schwab <[EMAIL PROTECTED]>
    Signed-off-by: Tony Luck <[EMAIL PROTECTED]>
---
 include/asm-ia64/atomic.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/asm-ia64/atomic.h b/include/asm-ia64/atomic.h
index 1fc3b83..50c2b83 100644
--- a/include/asm-ia64/atomic.h
+++ b/include/asm-ia64/atomic.h
@@ -55,7 +55,7 @@ ia64_atomic64_add (__s64 i, atomic64_t *v)
 
        do {
                CMPXCHG_BUGCHECK(v);
-               old = atomic_read(v);
+               old = atomic64_read(v);
                new = old + i;
        } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic64_t)) != old);
        return new;
@@ -83,7 +83,7 @@ ia64_atomic64_sub (__s64 i, atomic64_t *v)
 
        do {
                CMPXCHG_BUGCHECK(v);
-               old = atomic_read(v);
+               old = atomic64_read(v);
                new = old - i;
        } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic64_t)) != old);
        return new;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to