> +/*
> + * percpu provides a mechanism to define variables that are specific to
> each
> + * CPU in the system.
> + *
> + * Each variable is defined as an independent array of NR_CPUS elements.
The independent array term seems misleading to me. There isn't really
an array anywhere. Perhaps expla
On Fri, 04 May 2007 10:36:37 +0200
"Julio M. Merino Vidal" <[EMAIL PROTECTED]> wrote:
>
> Anyway, what do you think about adding the above text to the code (percpu.h
> maybe) as documentation? See the patch below. (Dunno if the Signed-off-by
> line is appropriate as most of the text is yours.)
Andi Kleen wrote:
As far as I can tell, the advantage of percpu is that you can define
new "fields" anywhere in the code and independently from the rest of
the system.
- Independent maintenance as you noted
- Fast access and relatively compact code
- Avoids false sharing by keeping cache
"Julio M. Merino Vidal" <[EMAIL PROTECTED]> writes:
> Similarly, and if I understood it correctly, the PDA (Per-processor
> Data Area) also aims to do the above, but at the moment it only
> contains some fields and is not defined in all platforms. There are
> still a lot of usages of the percpu
4 matches
Mail list logo