From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH v7 6/6] MCS Lock: add Kconfig entries to allow arch-specific hooks Date: Mon, 20 Jan 2014 14:17:35 +0100 Message-ID: <20140120131735.GD3694@twins.programming.kicks-ass.net> References: <1389917316.3138.16.camel@schen9-DESK> <20140120123030.GE31570@twins.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20140120123030.GE31570@twins.programming.kicks-ass.net> Sender: owner-linux-mm@kvack.org To: Tim Chen Cc: Ingo Molnar , Andrew Morton , Thomas Gleixner , "Paul E.McKenney" , Will Deacon , linux-kernel@vger.kernel.org, linux-mm , linux-arch@vger.kernel.org, Linus Torvalds , Waiman Long , Andrea Arcangeli , Alex Shi , Andi Kleen , Michel Lespinasse , Davidlohr Bueso , Matthew R Wilcox , Dave Hansen , Rik van Riel , Peter Hurley , Raghavendra K T , George Spelvin , "H. Peter Anvin" , Arnd Bergmann , Aswin List-Id: linux-arch.vger.kernel.org On Mon, Jan 20, 2014 at 01:30:30PM +0100, Peter Zijlstra wrote: > Then again, people seem to whinge if you don't keep these Kbuild files > sorted, but manually sorting 29 files is just not something I like to > do. This seems to do it.. gawk '/^generic-y/ { i = 3; do { for (; i<=NF; i++) { if ($i == "\\") { getline; i=1; continue; } if ($i != "") hdr[$i] = $i; } break; } while (1); next; } // { print $0; } END { n = asort(hdr); for (i=1; i<=n; i++) print "generic-y += " hdr[i]; }' -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from merlin.infradead.org ([205.233.59.134]:56385 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753304AbaATNS3 (ORCPT ); Mon, 20 Jan 2014 08:18:29 -0500 Date: Mon, 20 Jan 2014 14:17:35 +0100 From: Peter Zijlstra Subject: Re: [PATCH v7 6/6] MCS Lock: add Kconfig entries to allow arch-specific hooks Message-ID: <20140120131735.GD3694@twins.programming.kicks-ass.net> References: <1389917316.3138.16.camel@schen9-DESK> <20140120123030.GE31570@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140120123030.GE31570@twins.programming.kicks-ass.net> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Tim Chen Cc: Ingo Molnar , Andrew Morton , Thomas Gleixner , "Paul E.McKenney" , Will Deacon , linux-kernel@vger.kernel.org, linux-mm , linux-arch@vger.kernel.org, Linus Torvalds , Waiman Long , Andrea Arcangeli , Alex Shi , Andi Kleen , Michel Lespinasse , Davidlohr Bueso , Matthew R Wilcox , Dave Hansen , Rik van Riel , Peter Hurley , Raghavendra K T , George Spelvin , "H. Peter Anvin" , Arnd Bergmann , Aswin Chandramouleeswaran , Scott J Norton , "Figo.zhang" Message-ID: <20140120131735.pl0sErIRjRDrqckZX3-g4WSyFAoBmbMewR5tFG3k9Uc@z> On Mon, Jan 20, 2014 at 01:30:30PM +0100, Peter Zijlstra wrote: > Then again, people seem to whinge if you don't keep these Kbuild files > sorted, but manually sorting 29 files is just not something I like to > do. This seems to do it.. gawk '/^generic-y/ { i = 3; do { for (; i<=NF; i++) { if ($i == "\\") { getline; i=1; continue; } if ($i != "") hdr[$i] = $i; } break; } while (1); next; } // { print $0; } END { n = asort(hdr); for (i=1; i<=n; i++) print "generic-y += " hdr[i]; }'