From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Subject: Re: [PATCH 07/20] arch,cris: Fold atomic_ops Date: Thu, 8 May 2014 17:12:31 +0200 Message-ID: References: <20140508135840.956784204@infradead.org> <20140508135852.104572724@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-ig0-f179.google.com ([209.85.213.179]:38355 "EHLO mail-ig0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751856AbaEHPMc (ORCPT ); Thu, 8 May 2014 11:12:32 -0400 In-Reply-To: <20140508135852.104572724@infradead.org> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Peter Zijlstra Cc: Linux-Arch , "linux-kernel@vger.kernel.org" , Linus Torvalds , Andrew Morton , Ingo Molnar , Will Deacon , Paul McKenney , Jesper Nilsson , Mikael Starvik Hi Peter, On Thu, May 8, 2014 at 3:58 PM, 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. > > Cc: Geert Uytterhoeven > Cc: Jesper Nilsson > Cc: Linus Torvalds > Cc: Mikael Starvik > Signed-off-by: Peter Zijlstra > --- > arch/cris/include/arch-v10/arch/system.h | 2 - > arch/cris/include/asm/atomic.h | 57 +++++++++++++------------------ > 2 files changed, 25 insertions(+), 34 deletions(-) > > Index: linux-2.6/arch/cris/include/arch-v10/arch/system.h > =================================================================== > --- linux-2.6.orig/arch/cris/include/arch-v10/arch/system.h > +++ linux-2.6/arch/cris/include/arch-v10/arch/system.h > @@ -36,8 +36,6 @@ static inline unsigned long _get_base(ch > return 0; > } > > -#define nop() __asm__ __volatile__ ("nop"); > - Is this change supposed to be part of this series? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds