From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933207AbbHLMgD (ORCPT ); Wed, 12 Aug 2015 08:36:03 -0400 Received: from terminus.zytor.com ([198.137.202.10]:42644 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932858AbbHLMf7 (ORCPT ); Wed, 12 Aug 2015 08:35:59 -0400 Date: Wed, 12 Aug 2015 05:35:27 -0700 From: tip-bot for Will Deacon Message-ID: Cc: torvalds@linux-foundation.org, peterz@infradead.org, mingo@kernel.org, hpa@zytor.com, tglx@linutronix.de, will.deacon@arm.com, linux-kernel@vger.kernel.org Reply-To: torvalds@linux-foundation.org, peterz@infradead.org, mingo@kernel.org, hpa@zytor.com, will.deacon@arm.com, tglx@linutronix.de, linux-kernel@vger.kernel.org In-Reply-To: <1438880084-18856-5-git-send-email-will.deacon@arm.com> References: <1438880084-18856-5-git-send-email-will.deacon@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] locking/lockref: Remove homebrew cmpxchg64_relaxed() macro definition Git-Commit-ID: f5468ffde13fc991bd4d6bdec507ffd5777865bd X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: f5468ffde13fc991bd4d6bdec507ffd5777865bd Gitweb: http://git.kernel.org/tip/f5468ffde13fc991bd4d6bdec507ffd5777865bd Author: Will Deacon AuthorDate: Thu, 6 Aug 2015 17:54:40 +0100 Committer: Ingo Molnar 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 Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Waiman.Long@hp.com Cc: paulmck@linux.vnet.ibm.com Link: http://lkml.kernel.org/r/1438880084-18856-5-git-send-email-will.deacon@arm.com Signed-off-by: Ingo Molnar --- 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. */