[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20240814031431.74015-1-qiuxu.zhuo@intel.com>
Date: Wed, 14 Aug 2024 11:14:31 +0800
From: Qiuxu Zhuo <qiuxu.zhuo@...el.com>
To: tglx@...utronix.de
Cc: torvalds@...ux-foundation.org,
x86@...nel.org,
linux-kernel@...r.kernel.org,
qiuxu.zhuo@...el.com
Subject: [PATCH 1/1] x86/paravirt: Use static_branch_unlikely() for virt_spin_lock_key test
Commit
e639222a5119 ("x86/paravirt: Fix incorrect virt spinlock setting on bare metal")
sets virt_spin_lock_key to false by default. Use static_branch_unlikely() for
virt_spin_lock_key test.
Suggested-by: Linus Torvalds <torvalds@...ux-foundation.org>
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@...el.com>
---
arch/x86/include/asm/qspinlock.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/qspinlock.h b/arch/x86/include/asm/qspinlock.h
index 68da67df304d..b6f336a227da 100644
--- a/arch/x86/include/asm/qspinlock.h
+++ b/arch/x86/include/asm/qspinlock.h
@@ -89,7 +89,7 @@ static inline bool virt_spin_lock(struct qspinlock *lock)
{
int val;
- if (!static_branch_likely(&virt_spin_lock_key))
+ if (!static_branch_unlikely(&virt_spin_lock_key))
return false;
/*
--
2.17.1
Powered by blists - more mailing lists