OSDN Git Service

mm: use raw_cpu ops for determining current NUMA node
[uclinux-h8/linux.git] / include / linux / topology.h
index 12ae6ce..7062330 100644 (file)
@@ -188,7 +188,7 @@ DECLARE_PER_CPU(int, numa_node);
 /* Returns the number of the current Node. */
 static inline int numa_node_id(void)
 {
-       return __this_cpu_read(numa_node);
+       return raw_cpu_read(numa_node);
 }
 #endif
 
@@ -245,7 +245,7 @@ static inline void set_numa_mem(int node)
 /* Returns the number of the nearest Node with memory */
 static inline int numa_mem_id(void)
 {
-       return __this_cpu_read(_numa_mem_);
+       return raw_cpu_read(_numa_mem_);
 }
 #endif