From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755366AbbHFQzY (ORCPT ); Thu, 6 Aug 2015 12:55:24 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:48213 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753128AbbHFQzW (ORCPT ); Thu, 6 Aug 2015 12:55:22 -0400 From: Will Deacon To: linux-arch@vger.kernel.org Cc: Waiman.Long@hp.com, peterz@infradead.org, linux-kernel@vger.kernel.org, paulmck@linux.vnet.ibm.com, mingo@kernel.org, Will Deacon Subject: [PATCH v5 4/8] lockref: remove homebrew cmpxchg64_relaxed macro definition Date: Thu, 6 Aug 2015 17:54:40 +0100 Message-Id: <1438880084-18856-5-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1438880084-18856-1-git-send-email-will.deacon@arm.com> References: <1438880084-18856-1-git-send-email-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- lib/lockref.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/lockref.c b/lib/lockref.c index 494994bf17c8..5a92189ad711 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. */ -- 2.1.4