[PATCH 0/2] percpu: Optimize percpu accesses v3

From: Mike Travis
Date: Tue Feb 19 2008 - 15:32:46 EST



This is the generic (non-x86) changes for zero-based per cpu variables.

This patchset provides the following:

* Init: Move setup of nr_cpu_ids to as early as possible for usage
by early boot functions.

* Generic: Percpu infrastructure to rebase the per cpu area to zero

This provides for the capability of accessing the percpu variables
using a local register instead of having to go through a table
on node 0 to find this cpu specific offsets. It also would allow
atomic operations on percpu variables to reduce required locking.

* Introduces a new DEFINE_PER_CPU_FIRST to locate a percpu variable
(cpu_pda in this case) at the beginning of the percpu .data section.

Based on git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

Signed-off-by: Christoph Lameter <clameter@xxxxxxx>
Signed-off-by: Mike Travis <travis@xxxxxxx>
---
v3: * split generic/x86-specific into two patches

v2: * rebased and retested using linux-2.6.git
* fixed errors reported by checkpatch.pl

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/