Whamcloud - gitweb
LU-663 kernel: Some arch do not have NUMA features anymore
authorGregoire Pichon <gregoire.pichon@bull.net>
Wed, 7 Sep 2011 14:55:04 +0000 (16:55 +0200)
committerOleg Drokin <green@whamcloud.com>
Sat, 10 Dec 2011 16:57:37 +0000 (11:57 -0500)
commit49b74e8ab7c0bf76a4ff5b0b2cce15314b1ca8f8
tree66858d47977df0fdbf740857545b860af1ec03b6
parentf12b088ace79fa518bdfc8bdb9b462b8165d715e
LU-663 kernel: Some arch do not have NUMA features anymore

Some architectures, especially x86_64, do not have cpu_to_node()
defined as a macro, and node_to_cpumask() exported by the kernel
anymore.

The cpu_to_node() routine is defined either as a macro, as an inline
routine using another exported symbol, or as an exported symbol.
Anyway, the kernel defines this service since at least version
2.6.12.

The node_to_cpumask() routine has been replaced by cpumask_of_node()
for x86 architectures since kernel version 2.6.30.

The set_cpus_allowed() routine is not defined if
CONFIG_CPUMASK_OFFSTACK=y since kernel version 2.6.32.

Signed-off-by: Gregoire Pichon <gregoire.pichon@bull.net>
Change-Id: If81269f403f888d4cde89c6fda5a8d7e10ea70b0
Reviewed-on: http://review.whamcloud.com/1345
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Liang Zhen <liang@whamcloud.com>
libcfs/include/libcfs/linux/linux-prim.h
lustre/autoconf/lustre-core.m4
lustre/include/linux/lustre_compat25.h
lustre/ptlrpc/service.c