Thread (14 messages) 14 messages, 3 authors, 2016-12-06

[PATCH v8 2/6] powerpc: pSeries/Kconfig: Add qspinlock build config

flat view
STALE3619d SUPERSEDED

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

Status: Superseded by v9 (posted 2016-12-06). [go to v9]

Revision v8 (3 revisions archived).

Revisions (3)
  1. v7 re-posted go to this post
  2. v8 current [diff against previous]
  3. v9 [diff against previous]
pSeries/powerNV will use qspinlock from now on.

Signed-off-by: Pan Xinhui <redacted>
---
 arch/powerpc/platforms/pseries/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig
index bec90fb..8a87d06 100644
--- a/arch/powerpc/platforms/pseries/Kconfig
+++ b/arch/powerpc/platforms/pseries/Kconfig
@@ -23,6 +23,14 @@ config PPC_PSERIES
 	select PPC_DOORBELL
 	default y
 
+config ARCH_USE_QUEUED_SPINLOCKS
+	default y
+	bool "Enable qspinlock"
+	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 PPC_SPLPAR
 	depends on PPC_PSERIES
 	bool "Support for shared-processor logical partitions"
-- 
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