percpu: fix generic definition of __this_cpu_add_and_return()
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Sun, 19 Feb 2012 14:29:11 +0000 (18:29 +0400)
committerTejun Heo <tj@kernel.org>
Tue, 21 Feb 2012 16:57:10 +0000 (08:57 -0800)
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>
include/linux/percpu.h

index 32cd1f67462e9b4a80f602474878c6ff632d6976..3b609eb9cd7da711e576140972c18b4ca3a751af 100644 (file)
@@ -718,7 +718,8 @@ do {                                                                        \
 # ifndef __this_cpu_add_return_8
 #  define __this_cpu_add_return_8(pcp, val)    __this_cpu_generic_add_return(pcp, val)
 # 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
 
 #define __this_cpu_sub_return(pcp, val)        this_cpu_add_return(pcp, -(val))