From: Keith Owens <kaos@ocs.com.au>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [patch 2.6.7-rc2] Add const to some scheduling functions
Date: Tue, 01 Jun 2004 19:55:24 +1000 [thread overview]
Message-ID: <12672.1086083724@ocs3.ocs.com.au> (raw)
In-Reply-To: Your message of "Tue, 01 Jun 2004 00:16:32 MST." <20040601001632.1cc185ba.akpm@osdl.org>
On Tue, 1 Jun 2004 00:16:32 -0700,
Andrew Morton <akpm@osdl.org> wrote:
>Keith Owens <kaos@ocs.com.au> wrote:
>>
>> Several scheduler macros only read from the task struct, mark them
>> const. It can generate better code.
>
>It makes no change to the gcc-3.4.0-compiled x86 kernel's size. Under what
>circumstances did you see improvements?
None, it is just good programming practice to mark parameters as const
where possible.
next prev parent reply other threads:[~2004-06-01 9:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-01 3:46 Keith Owens
2004-06-01 7:16 ` Andrew Morton
2004-06-01 9:55 ` Keith Owens [this message]
2004-06-01 20:12 ` Paul Jackson
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=12672.1086083724@ocs3.ocs.com.au \
--to=kaos@ocs.com.au \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®