numa: add generic percpu var numa_node_id() implementation
[pandora-kernel.git] / mm / page_alloc.c
index 08b3499..6fe1b65 100644 (file)
 #include <asm/div64.h>
 #include "internal.h"
 
+#ifdef CONFIG_USE_PERCPU_NUMA_NODE_ID
+DEFINE_PER_CPU(int, numa_node);
+EXPORT_PER_CPU_SYMBOL(numa_node);
+#endif
+
 /*
  * Array of node states.
  */