percpu: fix __this_cpu_{sub,inc,dec}_return() definition

This patch adds missed "__" prefixes, otherwise these functions
works as irq/preemption safe.

Reported-by: Torsten Kaiser <just.for.lkml@googlemail.com>
Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Konstantin Khlebnikov 2012-02-29 00:41:12 +04:00 committed by Tejun Heo
parent e920d5971d
commit adb795062f
1 changed files with 3 additions and 3 deletions

View File

@ -722,9 +722,9 @@ do { \
__pcpu_size_call_return2(__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))
#define __this_cpu_inc_return(pcp) this_cpu_add_return(pcp, 1) #define __this_cpu_inc_return(pcp) __this_cpu_add_return(pcp, 1)
#define __this_cpu_dec_return(pcp) this_cpu_add_return(pcp, -1) #define __this_cpu_dec_return(pcp) __this_cpu_add_return(pcp, -1)
#define __this_cpu_generic_xchg(pcp, nval) \ #define __this_cpu_generic_xchg(pcp, nval) \
({ typeof(pcp) ret__; \ ({ typeof(pcp) ret__; \