Quellcode durchsuchen

percpu: fix generic definition of __this_cpu_add_and_return()

This patch adds missed "__" into function prefix.
Otherwise on all archectures (except x86) it expands to irq/preemtion-safe
variant: _this_cpu_generic_add_return(), which do extra irq-save/irq-restore.
Optimal generic implementation is __this_cpu_generic_add_return().

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Konstantin Khlebnikov vor 13 Jahren
Ursprung
Commit
7d96b3e55a
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      include/linux/percpu.h

+ 2 - 1
include/linux/percpu.h

@@ -718,7 +718,8 @@ do {									\
 # ifndef __this_cpu_add_return_8
 # ifndef __this_cpu_add_return_8
 #  define __this_cpu_add_return_8(pcp, val)	__this_cpu_generic_add_return(pcp, val)
 #  define __this_cpu_add_return_8(pcp, val)	__this_cpu_generic_add_return(pcp, val)
 # endif
 # endif
-# define __this_cpu_add_return(pcp, val)	__pcpu_size_call_return2(this_cpu_add_return_, pcp, val)
+# define __this_cpu_add_return(pcp, val)	\
+	__pcpu_size_call_return2(__this_cpu_add_return_, pcp, val)
 #endif
 #endif
 
 
 #define __this_cpu_sub_return(pcp, val)	this_cpu_add_return(pcp, -(val))
 #define __this_cpu_sub_return(pcp, val)	this_cpu_add_return(pcp, -(val))