Re: [PATCH 0/9 v2] use efficient this_cpu_* helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > this_cpu_ptr is faster than per_cpu_ptr(p, smp_processor_id()) > and can reduce memory accesses. > The latter helper needs to find the offset for current cpu, > and needs more assembler instructions which objdump shows in following. > > per_cpu_ptr(p, smp_pro

[PATCH 0/9 v2] use efficient this_cpu_* helper

2012-11-02 Thread Shan Wei
this_cpu_ptr is faster than per_cpu_ptr(p, smp_processor_id()) and can reduce memory accesses. The latter helper needs to find the offset for current cpu, and needs more assembler instructions which objdump shows in following. per_cpu_ptr(p, smp_processor_id()): 1e: 65 8b 04 25 00 00 00 00

[PATCH 0/9 v2] use efficient this_cpu_* helper

2012-11-02 Thread Shan Wei
this_cpu_ptr is faster than per_cpu_ptr(p, smp_processor_id()) and can reduce memory accesses. The latter helper needs to find the offset for current cpu, and needs more assembler instructions which objdump shows in following. per_cpu_ptr(p, smp_processor_id()): 1e: 65 8b 04 25 00 00 00 00