Ingo Molnar wrote: > what point would there be in using it? It's not like the kernel could > make use of the thread keyword anytime soon (it would need /all/ > architectures to support it) ... The plan was to implement the x86 arch-specific percpu stuff to use it, since it allows gcc better optimisation opportunities. > and the kernel doesnt mind how the > current per_cpu() primitives are implemented, via assembly or via C. In > any case, it very much matters to see the precise cost of having the pda > selector value in %gs versus %fs. > Hm, well, unfortunately for me, there is a small but distinct advantage to using %fs rather than %gs (around 0-5ns per iteration). The notable exception being the "AMD-K6(tm) 3D+ Processor", where %gs is about 25% (15ns) faster. I'll revise the patches to use %fs and resubmit. J