From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754016AbaHNT1m (ORCPT ); Thu, 14 Aug 2014 15:27:42 -0400 Received: from cassarossa.samfundet.no ([193.35.52.29]:36111 "EHLO cassarossa.samfundet.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752444AbaHNT1l (ORCPT ); Thu, 14 Aug 2014 15:27:41 -0400 Date: Thu, 14 Aug 2014 21:27:20 +0200 From: Hans-Christian Egtvedt To: mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, peterz@infradead.org, paulmck@linux.vnet.ibm.com, hskinnemoen@gmail.com, tglx@linutronix.de Subject: Re: [tip:locking/arch] locking,arch,avr32: Fold atomic_ops Message-ID: <20140814192720.GA16175@samfundet.no> References: <20140531141445.GD16155@laptop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Around Thu 14 Aug 2014 10:19:44 -0700 or thereabout, tip-bot for Peter Zijlstra wrote: > Commit-ID: d325209b6000dcd13404ee946d2292e15a56718c > Gitweb: http://git.kernel.org/tip/d325209b6000dcd13404ee946d2292e15a56718c > Author: Peter Zijlstra > AuthorDate: Wed, 9 Apr 2014 21:51:29 +0200 > Committer: Ingo Molnar > CommitDate: Thu, 14 Aug 2014 12:48:05 +0200 > > locking,arch,avr32: Fold atomic_ops > > 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. > > AVR32 is a bit special in that its ADD/SUB instructions are not > symmetric. Its SUB instruction allows for an 21bit immediate. Fantastic, looks great. Do you have any plans for merge route? I'll happily do it through the avr32 tree, but if it is part of another series, it makes most sense to do it there. > Signed-off-by: Peter Zijlstra > Cc: Hans-Christian Egtvedt > Cc: Haavard Skinnemoen > Cc: Hans-Christian Egtvedt > Cc: Linus Torvalds > Cc: Paul E. McKenney > Link: http://lkml.kernel.org/r/20140531141445.GD16155@laptop.programming.kicks-ass.net > Signed-off-by: Ingo Molnar Acked-by: Hans-Christian Egtvedt > --- > arch/avr32/include/asm/atomic.h | 123 ++++++++++++++++++++-------------------- > 1 file changed, 62 insertions(+), 61 deletions(-) -- mvh Hans-Christian Egtvedt