Thread (21 messages) 21 messages, 10 authors, 2009-01-31

Re: [PATCH] percpu: add optimized generic percpu accessors

From: Christoph Lameter <hidden>
Date: 2009-01-28 17:28:14
Also in: lkml

Possibly related (same subject, not in this thread)

On Wed, 28 Jan 2009, Rusty Russell wrote:
AFAICT we'll need a hybrid: HAVE_NMISAFE_CPUOPS, and if not, use atomic_t
in ftrace (which isn't NMI safe on parisc or sparc/32 anyway, but I don't think we care).
Right.

Other than the shouting, I liked Christoph's system:
- CPU_INC = always safe (eg. local_irq_save/per_cpu(i)++/local_irq_restore)
- _CPU_INC = not safe against interrupts (eg. get_cpu/per_cpu(i)++/put_cpu)
- __CPU_INC = not safe against anything (eg. per_cpu(i)++)

I prefer the name 'local' to the name 'cpu', but I'm not hugely fussed.
The term cpu is meaning multiple things at this point. So yes it may be
better to go with glibc naming of thread local space.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help