Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757555AbXLGVgS (ORCPT ); Fri, 7 Dec 2007 16:36:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754907AbXLGVgB (ORCPT ); Fri, 7 Dec 2007 16:36:01 -0500 Received: from e33.co.us.ibm.com ([32.97.110.151]:42163 "EHLO e33.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754471AbXLGVf7 (ORCPT ); Fri, 7 Dec 2007 16:35:59 -0500 Message-ID: <4759BCBA.7060800@linux.vnet.ibm.com> Date: Sat, 08 Dec 2007 03:05:54 +0530 From: Balbir Singh Reply-To: balbir@linux.vnet.ibm.com Organization: IBM User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Geert Uytterhoeven CC: linuxppc-dev@ozlabs.org, LKML Subject: Re: [PATCH] Fake NUMA emulation for PowerPC References: <20071207211425.10223.91240.sendpatchset@balbir-laptop> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 751 Lines: 28 Geert Uytterhoeven wrote: > On Sat, 8 Dec 2007, Balbir Singh wrote: >> + if (strstr(p, "fake=")) >> + cmdline = p + 5; /* 5 is faster than strlen("fake=") */ > > Really? My gcc is smart enough to replace the `strlen("fake=")' by 5, even > without -O. > Thanks for pointing that out, but I am surprised that a compiler would interpret library routines like strlen. > With kind regards, > > Geert Uytterhoeven > Software Architect -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL -- 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/