From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755413AbaEHSb5 (ORCPT ); Thu, 8 May 2014 14:31:57 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:49457 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754738AbaEHSbz (ORCPT ); Thu, 8 May 2014 14:31:55 -0400 Date: Thu, 8 May 2014 19:31:16 +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" , Albin Tonnerre , Catalin Marinas , Chen Gang , Nicolas Pitre , Russell King , Victor Kamensky Subject: Re: [PATCH 04/20] arch,arm: Fold atomic_ops Message-ID: <20140508183116.GJ8981@arm.com> References: <20140508135840.956784204@infradead.org> <20140508135851.939725247@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140508135851.939725247@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:44PM +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 because of eor. > > Cc: Albin Tonnerre > Cc: Catalin Marinas > Cc: Chen Gang > Cc: Linus Torvalds > Cc: Nicolas Pitre > Cc: Russell King > Cc: Victor Kamensky > Cc: Will Deacon > Signed-off-by: Peter Zijlstra > --- > arch/arm/include/asm/atomic.h | 313 +++++++++++++++++------------------------- > 1 file changed, 127 insertions(+), 186 deletions(-) Acked-by: Will Deacon Will