Messages in this thread | | | Date | Wed, 31 Oct 2012 17:28:56 +0000 | From | Christoph Lameter <> | Subject | Re: [PATCH 0/9] use this_cpu_ptr instead of per_cpu_ptr(p, smp_processor_id()) |
| |
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.
| |