From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755432AbaEHScY (ORCPT ); Thu, 8 May 2014 14:32:24 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:49475 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752840AbaEHScW (ORCPT ); Thu, 8 May 2014 14:32:22 -0400 Date: Thu, 8 May 2014 19:31:42 +0100 From: Will Deacon To: Peter Zijlstra Cc: "linux-arch@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "torvalds@linux-foundation.org" , "akpm@linux-foundation.org" , "mingo@kernel.org" , "paulmck@linux.vnet.ibm.com" , Catalin Marinas , Chen Gang , Russell King Subject: Re: [PATCH 05/20] arch,arm64: Fold atomic_ops Message-ID: <20140508183142.GK8981@arm.com> References: <20140508135840.956784204@infradead.org> <20140508135851.995123148@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140508135851.995123148@infradead.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 08, 2014 at 02:58:45PM +0100, Peter Zijlstra wrote: > Many of the atomic op implementations are the same except for one > instruction; fold the lot into a few CPP macros and reduce LoC. > > This also prepares for easy addition of new ops. > > Requires the asm_op due to eor. > > Cc: Catalin Marinas > Cc: Chen Gang > Cc: Linus Torvalds > Cc: Russell King > Cc: Will Deacon > Signed-off-by: Peter Zijlstra > --- > arch/arm64/include/asm/atomic.h | 213 ++++++++++++++++------------------------ > 1 file changed, 88 insertions(+), 125 deletions(-) Acked-by: Will Deacon Will