x86: replace percpu_xxx funcs with this_cpu_xxx
[linux-2.6-block.git] / include / linux / topology.h
index e26db031303b69cee9954780f3ce3f8d276d8644..9dc427cdb6ffc4019de726a6cbe11ded56949cb7 100644 (file)
@@ -239,7 +239,7 @@ static inline int cpu_to_node(int cpu)
 #ifndef set_numa_node
 static inline void set_numa_node(int node)
 {
-       percpu_write(numa_node, node);
+       this_cpu_write(numa_node, node);
 }
 #endif
 
@@ -274,7 +274,7 @@ DECLARE_PER_CPU(int, _numa_mem_);
 #ifndef set_numa_mem
 static inline void set_numa_mem(int node)
 {
-       percpu_write(_numa_mem_, node);
+       this_cpu_write(_numa_mem_, node);
 }
 #endif