[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0000013ab7de641e-c975be0c-e85b-4705-8f02-e25b2d4a0ac2-000000@email.amazonses.com>
Date: Wed, 31 Oct 2012 17:28:56 +0000
From: Christoph Lameter <cl@...ux.com>
To: Shan Wei <shanwei88@...il.com>
cc: David Miller <davem@...emloft.net>,
NetDev <netdev@...r.kernel.org>,
Kernel-Maillist <linux-kernel@...r.kernel.org>
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists