[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-f5468ffde13fc991bd4d6bdec507ffd5777865bd@git.kernel.org>
Date: Wed, 12 Aug 2015 05:35:27 -0700
From: tip-bot for Will Deacon <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: torvalds@...ux-foundation.org, peterz@...radead.org,
mingo@...nel.org, hpa@...or.com, tglx@...utronix.de,
will.deacon@....com, linux-kernel@...r.kernel.org
Subject: [tip:locking/core] locking/lockref:
Remove homebrew cmpxchg64_relaxed() macro definition
Commit-ID: f5468ffde13fc991bd4d6bdec507ffd5777865bd
Gitweb: http://git.kernel.org/tip/f5468ffde13fc991bd4d6bdec507ffd5777865bd
Author: Will Deacon <will.deacon@....com>
AuthorDate: Thu, 6 Aug 2015 17:54:40 +0100
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Wed, 12 Aug 2015 11:59:04 +0200
locking/lockref: Remove homebrew cmpxchg64_relaxed() macro definition
cmpxchg64_relaxed() is now defined by linux/atomic.h, so we can
remove our local definition from the lockref code.
Signed-off-by: Will Deacon <will.deacon@....com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Waiman.Long@...com
Cc: paulmck@...ux.vnet.ibm.com
Link: http://lkml.kernel.org/r/1438880084-18856-5-git-send-email-will.deacon@arm.com
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
lib/lockref.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/lib/lockref.c b/lib/lockref.c
index 494994b..5a92189 100644
--- a/lib/lockref.c
+++ b/lib/lockref.c
@@ -4,14 +4,6 @@
#if USE_CMPXCHG_LOCKREF
/*
- * Allow weakly-ordered memory architectures to provide barrier-less
- * cmpxchg semantics for lockref updates.
- */
-#ifndef cmpxchg64_relaxed
-# define cmpxchg64_relaxed cmpxchg64
-#endif
-
-/*
* Note that the "cmpxchg()" reloads the "old" value for the
* failure case.
*/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists