[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20071101.142551.93114462.davem@davemloft.net>
Date: Thu, 01 Nov 2007 14:25:51 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: clameter@....com
Cc: dada1@...mosbay.com, akpm@...ux-foundation.org,
linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org,
mathieu.desnoyers@...ymtl.ca, penberg@...helsinki.fi
Subject: Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce per cpu
access overhead
From: Christoph Lameter <clameter@....com>
Date: Thu, 1 Nov 2007 06:01:14 -0700 (PDT)
> On Thu, 1 Nov 2007, David Miller wrote:
>
> > IA64 seems to use it universally for every __get_cpu_var()
> > access, so maybe it works out somehow :-)))
>
> IA64 does not do that. It addds the local cpu offset
>
> #define __get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var,
> __ia64_per_cpu_var(local_per_cpu_offset)))
> #define __raw_get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var,
> __ia64_per_cpu_var(local_per_cpu_offset)))
Oh I see, it's the offset itself which is accessed at the fixed
virtual address slot.
-
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