Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751842AbdHJJVx (ORCPT ); Thu, 10 Aug 2017 05:21:53 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:46958 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751412AbdHJJVw (ORCPT ); Thu, 10 Aug 2017 05:21:52 -0400 Date: Thu, 10 Aug 2017 11:21:45 +0200 From: Peter Zijlstra To: Byungchul Park Cc: mingo@kernel.org, tglx@linutronix.de, walken@google.com, boqun.feng@gmail.com, kirill@shutemov.name, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, willy@infradead.org, npiggin@gmail.com, kernel-team@lge.com Subject: Re: [PATCH v8 05/14] lockdep: Implement crossrelease feature Message-ID: <20170810092145.6avlhvepnneh3swm@hirez.programming.kicks-ass.net> References: <1502089981-21272-1-git-send-email-byungchul.park@lge.com> <1502089981-21272-6-git-send-email-byungchul.park@lge.com> <20170809140535.aerk2ivnf4kv2mgf@hirez.programming.kicks-ass.net> <20170810013054.GW20323@X58A-UD3R> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170810013054.GW20323@X58A-UD3R> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 474 Lines: 18 On Thu, Aug 10, 2017 at 10:30:54AM +0900, Byungchul Park wrote: > With a little feedback, it rather makes us a bit confused between > XHLOCK_NR and MAX_XHLOCK_NR. what about the following? > > +enum xhlock_context_t { > + XHLOCK_HARD, > + XHLOCK_SOFT, > + XHLOCK_PROC, > + XHLOCK_CXT_NR, > +}; > > But it's trivial. I like yours, too. grep -l "XHLOCK_NR" `quilt series` | while read file; do sed -i 's/XHLOCK_NR/XHLOCK_CTX_NR/g' $file; done :-)