Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030460AbVKXD4o (ORCPT ); Wed, 23 Nov 2005 22:56:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030588AbVKXD4n (ORCPT ); Wed, 23 Nov 2005 22:56:43 -0500 Received: from terminus.zytor.com ([192.83.249.54]:51944 "EHLO terminus.zytor.com") by vger.kernel.org with ESMTP id S1030460AbVKXD4m (ORCPT ); Wed, 23 Nov 2005 22:56:42 -0500 Message-ID: <438539C4.7010708@zytor.com> Date: Wed, 23 Nov 2005 19:55:48 -0800 From: "H. Peter Anvin" User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mikulas Patocka CC: Linus Torvalds , Alan Cox , Andi Kleen , Gerd Knorr , Dave Jones , Zachary Amsden , Pavel Machek , Andrew Morton , Linux Kernel Mailing List , Zwane Mwaikambo , Pratap Subrahmanyam , Christopher Li , "Eric W. Biederman" , Ingo Molnar Subject: Re: [patch] SMP alternatives References: <4378A7F3.9070704@suse.de> <4379ECC1.20005@suse.de> <437A0649.7010702@suse.de> <437B5A83.8090808@suse.de> <438359D7.7090308@suse.de> <1132764133.7268.51.camel@localhost.localdomain> <20051123163906.GF20775@brahms.suse.de> <1132766489.7268.71.camel@localhost.localdomain> <4384AECC.1030403@zytor.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 663 Lines: 18 Mikulas Patocka wrote: > > Why should they waste their (already complex) decoding logic with that? > Why can't an application instead set a bit somewhere if it's running on > SMP and if it's threaded and branch to variants with and without lock > prefix? > Why? Because it would make the same code run faster on their CPU than on their competitor's. That's the kind of things that make x86 vendors smile. -hpa - 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/