From: Alexander Nyberg <alexn@telia.com>
To: "Parveen Verma, Noida" <Parveenv@noida.hcltech.com>
Cc: linux.guy@rediffmail.com, "Shilpi Jaiswal,
Noida" <shilpij@noida.hcltech.com>,
linux-kernel@vger.kernel.org
Subject: Re: __alloc_pages ()
Date: Mon, 20 Jun 2005 15:52:07 +0200 [thread overview]
Message-ID: <1119275527.1037.5.camel@localhost.localdomain> (raw)
In-Reply-To: <8A6EB6A72A5C774C8814DDC1501FC90E97C07B@exch-01.noida.hcltech.com>
mån 2005-06-20 klockan 17:23 +0530 skrev Parveen Verma, Noida:
> Hi,
>
> I have found that while allocating (mostly it is done) the pages in
> __alloc_pages(), after successfully allocating the page the
> zone_statistics() function is called.
>
> static void zone_statistics(struct zonelist *zonelist, struct zone *z)
> {
> #ifdef CONFIG_NUMA
> .....
> #endif
> }
> The whole body of this function is enclosed b/w #ifdef ... #endif.
> This function is called each time and does nothing if we don't have a NUMA
> machine.
> Can we put the call for this b/w #ifdef ... #endif?
> Although the gcc -O3 option does not generate a function call if the
> function body is nil.
I'd say gcc should optimize this out as is already, but now that it
doesn't, if you just make zone_statistics() inline the call will go away
with -O2
next prev parent reply other threads:[~2005-06-20 13:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-20 11:53 Parveen Verma, Noida
2005-06-20 13:52 ` Alexander Nyberg [this message]
2005-06-21 5:24 Parveen Verma, Noida
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=1119275527.1037.5.camel@localhost.localdomain \
--to=alexn@telia.com \
--cc=Parveenv@noida.hcltech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux.guy@rediffmail.com \
--cc=shilpij@noida.hcltech.com \
/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
all inboxes | Powered by JetHome®