Thread (6 messages) flat view 6 messages, 3 authors, 2013-09-03

Re: [guv v2 04/31] net: Replace __get_cpu_var uses

From: David Howells <dhowells@redhat.com>
Date: 2013-09-03 20:39:39
Also in: linux-arch, lkml

David Miller [off-list ref] wrote:
quoted
Would it be possible to use __thread annotations for per-CPU
variables, I wonder?
Paul Mackerras tried it on powerpc and you can't do it.

The problem is that there is no way to tell the compiler that sched()
and similar (potentially) change the thread pointer base.

It really will cache pre-computed __thread pointer calculations across
sched().
Yeah...  I thought there might be something like that - but I could see x86_64
using %fs as a base.

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help