Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269229AbUISMMA (ORCPT ); Sun, 19 Sep 2004 08:12:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269230AbUISML7 (ORCPT ); Sun, 19 Sep 2004 08:11:59 -0400 Received: from colin2.muc.de ([193.149.48.15]:7172 "HELO colin2.muc.de") by vger.kernel.org with SMTP id S269229AbUISML6 (ORCPT ); Sun, 19 Sep 2004 08:11:58 -0400 Date: 19 Sep 2004 14:11:55 +0200 Date: Sun, 19 Sep 2004 14:11:55 +0200 From: Andi Kleen To: Denis Vlasenko Cc: Christoph Lameter , akpm@osdl.org, "David S. Miller" , benh@kernel.crashing.org, wli@holomorphy.com, davem@redhat.com, raybry@sgi.com, manfred@colorfullife.com, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, vrajesh@umich.edu, hugh@veritas.com Subject: Re: page fault scalability patch V8: [4/7] universally available cmpxchg on i386 Message-ID: <20040919121155.GA58884@muc.de> References: <200409191430.37444.vda@port.imtp.ilyichevsk.odessa.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409191430.37444.vda@port.imtp.ilyichevsk.odessa.ua> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 564 Lines: 13 On Sun, Sep 19, 2004 at 02:30:37PM +0300, Denis Vlasenko wrote: > Far too large for inline It's much smaller than it looks - the switch will be optimized away by the compiler. For the X86_CMPXCHG case it is even a single instruction. For the other case it should be < 10 instructions, which is still reasonable. -Andi - 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/