lkml.org 
[lkml]   [2002]   [Jan]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] I3 sched tweaks...
FromRobert Love <>
Date16 Jan 2002 16:27:09 -0500
On Wed, 2002-01-16 at 16:19, Justin Carlson wrote:

> Don't forget that, in non-x86 land, current tends to be just kept in a 
> register.  No computations required.  Certainly passing it around on,
> e.g. mips is a clear loss.

current is stored in a register (esp) in x86, too.  This is why I
cautioned that looking up current was cheap -- I think every sane arch
stores current in some fast access way.  That's why it is a macro -- it
is assembly code to quickly snag the address.

So is passing current still worth it?

	Robert Love

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:23    [W:0.169 / U:0.070 seconds]
©2003-2008 Jasper Spaans