Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758087AbbEEK6k (ORCPT ); Tue, 5 May 2015 06:58:40 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:53103 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752215AbbEEK6c (ORCPT ); Tue, 5 May 2015 06:58:32 -0400 Date: Tue, 5 May 2015 12:58:12 +0200 From: Peter Zijlstra To: Raghavendra K T Cc: Tahsin Erdogan , tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, Waiman.Long@hp.com, borntraeger@de.ibm.com, oleg@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/spinlocks: Fix regression in spinlock contention detection Message-ID: <20150505105812.GK21418@twins.programming.kicks-ass.net> References: <1430799331-20445-1-git-send-email-tahsin@google.com> <20150505091714.GF21418@twins.programming.kicks-ass.net> <55489D9E.4010003@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55489D9E.4010003@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 558 Lines: 21 On Tue, May 05, 2015 at 04:08:22PM +0530, Raghavendra K T wrote: > ================ > #include > > #define LOCK_INC 2 Note that to be completely identical to the kernel code you should've written: #define LOCK_INC ((unsigned int)2) as per: #define TICKET_LOCK_INC ((__ticket_t)__TICKET_LOCK_INC) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/