From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752222Ab1HXVnl (ORCPT ); Wed, 24 Aug 2011 17:43:41 -0400 Received: from one.firstfloor.org ([213.235.205.2]:60633 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751336Ab1HXVnk (ORCPT ); Wed, 24 Aug 2011 17:43:40 -0400 Date: Wed, 24 Aug 2011 23:43:35 +0200 From: Andi Kleen To: Linus Torvalds Cc: Andi Kleen , Jeremy Fitzhardinge , "H. Peter Anvin" , Peter Zijlstra , Ingo Molnar , the arch/x86 maintainers , Linux Kernel Mailing List , Nick Piggin , Jeremy Fitzhardinge Subject: Re: [PATCH 06/18] x86/ticketlock: make __ticket_spin_trylock common Message-ID: <20110824214334.GS25996@one.firstfloor.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 24, 2011 at 02:38:12PM -0700, Linus Torvalds wrote: > On Wed, Aug 24, 2011 at 1:00 PM, Andi Kleen wrote: > > > > Can't we just get rid of the small ticket size code path? > > > > I couldn't benchmark any difference between the two last time > > I tried. > > The small locks aren't any faster. They are just smaller. Are you sure? AFAIK it's always typedef struct arch_spinlock { unsigned int slock; } arch_spinlock_t; -Andi