From: Robert Love <rml@tech9.net>
To: mingo@elte.hu
Cc: Rusty Russell <rusty@rustcorp.com.au>,
linux-kernel <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@transmeta.com>
Subject: Re: [PATCH] I3 sched tweaks...
Date: 16 Jan 2002 16:10:09 -0500 [thread overview]
Message-ID: <1011215440.814.82.camel@phantasy> (raw)
In-Reply-To: <Pine.LNX.4.33.0201162343290.18971-100000@localhost.localdomain>
In-Reply-To: <Pine.LNX.4.33.0201162343290.18971-100000@localhost.localdomain>
On Wed, 2002-01-16 at 17:46, Ingo Molnar wrote:
> we pass pointers across functions regularly, even if the pointer could be
> calculated within the function. We do this in the timer code too. It's
> slightly cheaper to pass an already existing (calculated) 'current'
> pointer over to another function, instead of calculating it once more in
> that function. This will be especially true once we make 'current' a tiny
> bit more expensive (Alan's kernel stack coloring rewrite will do that i
> think, it will be one more instruction to get 'current'.)
Maybe we should benchmark it? It is very easy to calculate current.
Certainly I see the benefit if we start coloring the pointer (it adds 2
instructions I believe) but let's make sure it is worth passing another
32-bit argument. It could very well be, schedule_tick is called
enough...
> > Moreover, the function doesn't make *sense* if p != current...
>
> yes - would it be perhaps cleaner then to name the variable 'this_task' or
> something like that?
Yes, good idea.
Robert Love
next prev parent reply other threads:[~2002-01-16 21:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-16 5:49 [PATCH] I3 sched tweaks Rusty Russell
2002-01-16 9:15 ` Ingo Molnar
2002-01-16 9:17 ` Ingo Molnar
2002-01-16 10:34 ` Rusty Russell
2002-01-16 22:46 ` Ingo Molnar
2002-01-16 21:10 ` Robert Love [this message]
2002-01-16 21:19 ` Justin Carlson
2002-01-16 21:27 ` Robert Love
2002-01-16 23:31 ` Ingo Molnar
2002-01-17 13:01 ` bill davidsen
2002-01-16 21:31 ` Paul Mackerras
2002-01-17 3:37 ` Rusty Russell
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=1011215440.814.82.camel@phantasy \
--to=rml@tech9.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rusty@rustcorp.com.au \
--cc=torvalds@transmeta.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