Re: [tip:x86/mm] percpu: Introduce a read-mostly percpu API

H. Peter Anvin
2010-10-21T05:55:11Z

On 10/20/2010 10:33 PM, Eric Dumazet wrote:
>
> Really, readmostly percpu variables dont need INTERNODE_CACHE_SHIFT, as
> this is read mostly, and per cpu vars ;)
>
> Just use L1_CACHE_BYTES
>

L1_CACHE_BYTES is completely pointless, since if there is sharing to
worry about *at all*, it's probably at the L2 or L3 cache levels.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.