From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with ESMTP id C86936B004F for ; Wed, 17 Jun 2009 21:48:58 -0400 (EDT) Message-ID: <4A399D52.9040801@kernel.org> Date: Thu, 18 Jun 2009 10:50:10 +0900 From: Tejun Heo MIME-Version: 1.0 Subject: Re: [this_cpu_xx V2 02/19] Introduce this_cpu_ptr() and generic this_cpu_* operations References: <20090617203337.399182817@gentwo.org> <20090617203443.173725344@gentwo.org> In-Reply-To: <20090617203443.173725344@gentwo.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: cl@linux-foundation.org Cc: akpm@linux-foundation.org, linux-mm@kvack.org, David Howells , Ingo Molnar , Rusty Russell , Eric Dumazet , davem@davemloft.net List-ID: cl@linux-foundation.org wrote: > this_cpu_ptr > ------------ > > this_cpu_ptr(xx) = per_cpu_ptr(xx, smp_processor_id). > > The problem with per_cpu_ptr(x, smp_processor_id) is that it requires > an array lookup to find the offset for the cpu. Processors typically > have the offset for the current cpu area in some kind of (arch dependent) > efficiently accessible register or memory location. ... > cc: David Howells > cc: Tejun Heo > cc: Ingo Molnar > cc: Rusty Russell > cc: Eric Dumazet > Signed-off-by: Christoph Lameter Acked-by: Tejun Heo -- tejun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org