From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e33.co.us.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 2808DDDE04 for ; Sat, 8 Dec 2007 08:36:00 +1100 (EST) Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e33.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id lB7LZvlW007761 for ; Fri, 7 Dec 2007 16:35:57 -0500 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id lB7LZu9p118146 for ; Fri, 7 Dec 2007 14:35:56 -0700 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id lB7LZuZa015767 for ; Fri, 7 Dec 2007 14:35:56 -0700 Message-ID: <4759BCBA.7060800@linux.vnet.ibm.com> Date: Sat, 08 Dec 2007 03:05:54 +0530 From: Balbir Singh MIME-Version: 1.0 To: Geert Uytterhoeven 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 Cc: linuxppc-dev@ozlabs.org, LKML Reply-To: balbir@linux.vnet.ibm.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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