linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: linuxppc-dev@ozlabs.org, balbir@linux.vnet.ibm.com
Cc: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Fake NUMA emulation for PowerPC
Date: Fri, 7 Dec 2007 22:58:17 +0100	[thread overview]
Message-ID: <200712072258.19331.arnd@arndb.de> (raw)
In-Reply-To: <4759BE88.3020702@linux.vnet.ibm.com>

On Friday 07 December 2007, Balbir Singh wrote:
> Balbir Singh wrote:
> > Geert Uytterhoeven wrote:
> >> On Sat, 8 Dec 2007, Balbir Singh wrote:
> >>> +=A0=A0=A0if (strstr(p, "fake=3D"))
> >>> +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0cmdline =3D p + 5;=A0=A0=A0=A0=A0=
=A0=A0=A0/* 5 is faster than strlen("fake=3D") */
> >> Really? My gcc is smart enough to replace the `strlen("fake=3D")' by 5=
, even
> >> without -O.
> >>
> >=20
> > Thanks for pointing that out, but I am surprised that a compiler would
> > interpret library routines like strlen.
> >=20
>=20
> I just tested it and it turns out that you are right. I'll go hunt to
> see where gcc gets its magic powers from.
>=20

Even if it wasn't: Why the heck would you want to optimize this? The functi=
on
is run _once_ at boot time and the object code gets thrown away afterwards!

	Arnd <><

  reply	other threads:[~2007-12-07 21:58 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-07 21:14 [PATCH] Fake NUMA emulation for PowerPC Balbir Singh
2007-12-07 21:28 ` Olof Johansson
2007-12-07 21:35   ` Balbir Singh
2007-12-07 21:55     ` Kumar Gala
2007-12-07 22:12       ` Balbir Singh
2007-12-07 22:15         ` Kumar Gala
2007-12-07 22:18           ` Balbir Singh
2007-12-07 23:10         ` David Rientjes
2007-12-08  4:22           ` Balbir Singh
2007-12-09 13:16             ` Pavel Machek
2007-12-09 13:20               ` Balbir Singh
2007-12-07 23:06   ` David Rientjes
2007-12-07 21:30 ` Geert Uytterhoeven
2007-12-07 21:35   ` Balbir Singh
2007-12-07 21:43     ` Balbir Singh
2007-12-07 21:58       ` Arnd Bergmann [this message]
2007-12-07 22:03         ` Balbir Singh
2007-12-07 22:01 ` Arnd Bergmann
2007-12-07 22:22   ` Balbir Singh
     [not found] ` <20071207221106.GH16824@localdomain>
2007-12-07 22:26   ` Balbir Singh
2007-12-07 23:11     ` David Rientjes
2007-12-08  4:32       ` Balbir Singh
2007-12-08  4:45         ` David Rientjes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200712072258.19331.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=Geert.Uytterhoeven@sonycom.com \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).