diff options
author | Waiman Long <longman@redhat.com> | 2018-07-17 16:16:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-07-25 05:22:20 -0400 |
commit | c0dc373a780f4ec63e45a573b9551763abd8cd1a (patch) | |
tree | 64eb4abbc1034a5a7f1daac237e5573005bb4c5a | |
parent | 7b94ea50514d1a0dc94f02723b603c27bc0ea597 (diff) |
locking/pvqspinlock/x86: Use LOCK_PREFIX in __pv_queued_spin_unlock() assembly code
The LOCK_PREFIX macro should be used in the __raw_callee_save___pv_queued_spin_unlock()
assembly code, so that the lock prefix can be patched out on UP systems.
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Joe Mario <jmario@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Link: http://lkml.kernel.org/r/1531858560-21547-1-git-send-email-longman@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/include/asm/qspinlock_paravirt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/qspinlock_paravirt.h b/arch/x86/include/asm/qspinlock_paravirt.h index 9ef5ee03d2d7..159622ee0674 100644 --- a/arch/x86/include/asm/qspinlock_paravirt.h +++ b/arch/x86/include/asm/qspinlock_paravirt.h | |||
@@ -43,7 +43,7 @@ asm (".pushsection .text;" | |||
43 | "push %rdx;" | 43 | "push %rdx;" |
44 | "mov $0x1,%eax;" | 44 | "mov $0x1,%eax;" |
45 | "xor %edx,%edx;" | 45 | "xor %edx,%edx;" |
46 | "lock cmpxchg %dl,(%rdi);" | 46 | LOCK_PREFIX "cmpxchg %dl,(%rdi);" |
47 | "cmp $0x1,%al;" | 47 | "cmp $0x1,%al;" |
48 | "jne .slowpath;" | 48 | "jne .slowpath;" |
49 | "pop %rdx;" | 49 | "pop %rdx;" |