From: KOSAKI Motohiro Date: Tue, 26 Jul 2011 23:08:44 +0000 (-0700) Subject: cpumask: alloc_cpumask_var() use NUMA_NO_NODE X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=37e7b5f1535dddaace865b25df34a2d049a3a66f;p=mv-sheeva.git cpumask: alloc_cpumask_var() use NUMA_NO_NODE NUMA_NO_NODE and numa_node_id() have different meanings. NUMA_NO_NODE is obviously the recommended fallback. Signed-off-by: KOSAKI Motohiro Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/cpumask.c b/lib/cpumask.c index 4f6425d7723..af3e5817de9 100644 --- a/lib/cpumask.c +++ b/lib/cpumask.c @@ -131,7 +131,7 @@ EXPORT_SYMBOL(zalloc_cpumask_var_node); */ bool alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags) { - return alloc_cpumask_var_node(mask, flags, numa_node_id()); + return alloc_cpumask_var_node(mask, flags, NUMA_NO_NODE); } EXPORT_SYMBOL(alloc_cpumask_var);