Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756576AbXJYVa0 (ORCPT ); Thu, 25 Oct 2007 17:30:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752972AbXJYVaN (ORCPT ); Thu, 25 Oct 2007 17:30:13 -0400 Received: from rn-out-0910.google.com ([64.233.170.188]:31773 "EHLO rn-out-0102.google.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753366AbXJYVaL (ORCPT ); Thu, 25 Oct 2007 17:30:11 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=Rn9eYsWxID0N1aVDI8dVvTkS0yvQj0KxJnwRPfwz3TUMbZGwzuPBoSGJQ+0wdSnx2jG4w2o7BHL8EaIYW4hRvMwFA7uxk7WFaAcCavdmA/5I7IpxaI48Ua8+Hvzy7Xfne+MiLPt5hCi1gUXBdMaawexy897fgePo0jQyFXeaspI= Message-ID: Date: Thu, 25 Oct 2007 22:30:09 +0100 From: "Michael Lothian" To: "Gabriel C" Subject: Re: Possibility of adding -march=native to x86 Cc: "Adrian Bunk" , linux-kernel@vger.kernel.org In-Reply-To: <4720FF2B.9020802@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <0EC33A59AA72084CA28B83816B40929F02682BB3@REEDXCLSXM01V03.rbsres01.net> <20071025185022.GP30533@stusta.de> <20071025191723.GQ30533@stusta.de> <20071025195020.GS30533@stusta.de> <4720FF2B.9020802@googlemail.com> X-Google-Sender-Auth: c96f34e1baf0d175 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1662 Lines: 44 On 25/10/2007, Gabriel C wrote: > Michael Lothian wrote: > >> The MPENTIUM4 option does not only set -march=pentium4, it also enables > >> several other options in arch/i386/Kconfig.cpu resulting in better > >> performance. > > > > How about an autodetect to set the right options here too using cpuid? > > > > With a warning of course that the code produced will be specifically > > for the native cpu that it's compiled on. > > And kill off all Distro kernels right ? IMO to set that auto magically is bad. > > Regards, > > Gabriel > > - > 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/ > Yes for something like a distro kernel it is bad but as I said before this isn't what this is for. Eventually it would be nice to to a make localkernel and for a customised kernel to be build compiling in all pci / pci express drivers into the kernel and all usb devices as modules. Auto magically detecting the cpu would be part of that I hate getting a new piece of kit and then have to figure out from lspci which options need to be turned on and the the really iritation part of finding the option in make menuconfig Detecting the cpu and using march=native could be all part of that Mike - 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/