4 Mar 2010 18:07
[PATCH/RFC 2/8] numa: add generic percpu var implementation of numa_node_id()
Lee Schermerhorn <lee.schermerhorn <at> hp.com>
2010-03-04 17:07:08 GMT
2010-03-04 17:07:08 GMT
From: Christoph Lameter <cl <at> linux-foundation.org>
Against: 2.6.33-mmotm-100302-1838
Rework the generic version of the numa_node_id() function to use the
new generic percpu variable infrastructure.
Guard the new implementation with a new config option:
CONFIG_USE_PERCPU_NUMA_NODE_ID.
Archs which support this new implemention will default this option
to 'y' when NUMA is configured. This config option could be removed
if/when all archs switch over to the generic percpu implementation
of numa_node_id(). Arch support involves:
1) converting any existing per cpu variable implementations to use
this implementation. x86_64 is an instance of such an arch.
2) archs that don't use a per cpu variable for numa_node_id() will
need to initialize the new per cpu variable "numa_node" as cpus
are brought on-line. ia64 is an example.
3) Defining USE_PERCPU_NUMA_NODE_ID in arch dependent Kconfig--e.g.,
when NUMA is configured
Subsequent patches will convert x86_64 and ia64 to use this
implemenation.
Signed-off-by: Lee Schermerhorn <lee.schermerhorn <at> hp.com>
V0:
(Continue reading)
RSS Feed