Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adb79506 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by Tejun Heo
Browse files

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



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

Reported-by: default avatarTorsten Kaiser <just.for.lkml@googlemail.com>
Signed-off-by: default avatarKonstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent e920d597
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -722,9 +722,9 @@ do { \
	__pcpu_size_call_return2(__this_cpu_add_return_, pcp, val)
#endif

#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_dec_return(pcp)	this_cpu_add_return(pcp, -1)
#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_dec_return(pcp)	__this_cpu_add_return(pcp, -1)

#define __this_cpu_generic_xchg(pcp, nval)				\
({	typeof(pcp) ret__;						\