Skip to content

Commit 532453e

Browse files
ubizjakIngo Molnar
authored andcommitted
locking/pvqspinlock/x86: Use _Q_LOCKED_VAL in PV_UNLOCK_ASM macro
Use _Q_LOCKED_VAL instead of hardcoded $0x1 in PV_UNLOCK_ASM macro. No functional changes intended. Signed-off-by: Uros Bizjak <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Acked-by: Boqun Feng <[email protected]> Cc: Waiman Long <[email protected]> Cc: Linus Torvalds <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 94af3a0 commit 532453e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/qspinlock_paravirt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ __PV_CALLEE_SAVE_REGS_THUNK(__pv_queued_spin_unlock_slowpath, ".spinlock.text");
4040
#define PV_UNLOCK_ASM \
4141
FRAME_BEGIN \
4242
"push %rdx\n\t" \
43-
"mov $0x1,%eax\n\t" \
43+
"mov $" __stringify(_Q_LOCKED_VAL) ",%eax\n\t" \
4444
"xor %edx,%edx\n\t" \
4545
LOCK_PREFIX "cmpxchg %dl,(%rdi)\n\t" \
4646
"jne .slowpath\n\t" \

0 commit comments

Comments
 (0)