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

Commit 88f182dd authored by Ingo Molnar's avatar Ingo Molnar
Browse files

x86: Apply the asm_volatile_goto() compiler quirk



Apply the asm_volatile_goto() compiler quirk to the new rmwcc.h
file as well, introduced in:

   c2daa3be sched, x86: Provide a per-cpu preempt_count implementation

Reported-and-tested-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Reported-by: default avatarOleg Nesterov <oleg@redhat.com>
Reported-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Suggested-by: default avatarJakub Jelinek <jakub@redhat.com>
Reviewed-by: default avatarRichard Henderson <rth@twiddle.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent ec0ad3d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@

#define __GEN_RMWcc(fullop, var, cc, ...)				\
do {									\
	asm volatile goto (fullop "; j" cc " %l[cc_label]"		\
	asm_volatile_goto (fullop "; j" cc " %l[cc_label]"		\
			: : "m" (var), ## __VA_ARGS__ 			\
			: "memory" : cc_label);				\
	return 0;							\