Thread (2 messages) 2 messages, 2 authors, 2012-10-31

Re: [PATCH 0/9] use this_cpu_ptr instead of per_cpu_ptr(p, smp_processor_id())

From: Christoph Lameter <hidden>
Date: 2012-10-31 17:28:59
Also in: lkml

On Wed, 31 Oct 2012, Shan Wei wrote:
this_cpu_ptr is faster than per_cpu_ptr(p, smp_processor_id()).
The latter helper needs to find the offset for current cpu,
and needs more assembler instructions which objdump shows in following.
The code is shorter and that helps but note that the main effect is that
memory accesses are reduced.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help