Thread (7 messages) flat view 7 messages, 1 author, 2016-12-06
STALE3557d

Revision v9 of 4 in this series.

Revisions (4)
  1. v7 [diff vs current]
  2. v7 [diff vs current]
  3. v8 [diff vs current]
  4. v9 current

[PATCH v9 2/6] powerpc: platforms/Kconfig: Add qspinlock build config

From: Pan Xinhui <hidden>
Date: 2016-12-06 13:13:36
Also in: lkml, virtualization
Subsystem: linux for powerpc (32-bit and 64-bit), the rest · Maintainers: Madhavan Srinivasan, Linus Torvalds

pSeries/powerNV will use qspinlock from now on.

Signed-off-by: Pan Xinhui <redacted>
---
 arch/powerpc/platforms/Kconfig | 9 +++++++++
 1 file changed, 9 insertions(+)
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index fbdae83..3559bbf 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -20,6 +20,15 @@ source "arch/powerpc/platforms/44x/Kconfig"
 source "arch/powerpc/platforms/40x/Kconfig"
 source "arch/powerpc/platforms/amigaone/Kconfig"
 
+config ARCH_USE_QUEUED_SPINLOCKS
+        depends on PPC_PSERIES || PPC_POWERNV
+        bool "Enable qspinlock"
+        default y
+        help
+	  Enabling this option will let kernel use qspinlock which is a kind of
+	  fairlock.  It has shown a good performance improvement on x86 and also
+	  ppc especially in high contention cases.
+
 config KVM_GUEST
 	bool "KVM Guest support"
 	default n
-- 
2.4.11
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help