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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

