[lkml]   [2006]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch] i386: use C code for current_thread_info()
Andreas Mohr wrote:
> An entirely different way would be to store the stack base value in a
> global variable and update that on each context switch, but it would
> increase
> context switch overhead and have >= 2 cycles access time for L1 cache
> (which
> would be the best memory access case!), which would most likely be more
> combined overhead than an AGI stall (I was mistaken in declaring the
> stall
> a pipeline flush - it's only a stall for a couple cycles, not a full
> flush
> wasting ~ 15 cycles).

That wouldn't work on SMP. You'd need per-cpu variables, which are
likely even slower.

[One way around that would be to use a segment register for the per-cpu

error compiling committee.c: too many arguments to function

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-06-13 11:29    [W:0.025 / U:1.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site