From 24f5976029b06f45e249ba4b8e3eb400d8454385 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 14 May 2004 05:56:08 -0700 Subject: [PATCH] [PATCH] ppc64: Kconfig bits for CONFIG_SPINLINE From: Paul Mackerras When I sent the patch to uninline the spinlocks, I inadvertently left out the change to arch/ppc64/Kconfig which defines the config symbol for inlining the locks (CONFIG_SPINLINE now). This patch adds it. It also adds a symbol CONFIG_PPC_SPLPAR which enables the code for calling the hypervisor on shared-processor logically-partitioned system to yield the physical processor to the lock holder when spinning. (The code that depends on this symbol is already present in arch/ppc64/lib/locks.c.) --- arch/ppc64/Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/ppc64/Kconfig b/arch/ppc64/Kconfig index 0f491907560a9..c2692ced9f42b 100644 --- a/arch/ppc64/Kconfig +++ b/arch/ppc64/Kconfig @@ -93,6 +93,16 @@ config PPC_PMAC bool "Apple PowerMac G5 support" select ADB_PMU +config PPC_SPLPAR + depends on PPC_PSERIES + bool "Support for shared-processor logical partitions" + default n + help + Enabling this option will make the kernel run more efficiently + on logically-partitioned pSeries systems which use shared + processors, that is, which share physical processors between + two or more partitions. + config PMAC_DART bool "Enable DART/IOMMU on PowerMac (allow >2G of RAM)" depends on PPC_PMAC @@ -410,6 +420,16 @@ config DEBUG_INFO endmenu +config SPINLINE + bool "Inline spinlock code at each call site" + depends on SMP && !PPC_SPLPAR && !PPC_ISERIES + help + Say Y if you want to have the code for acquiring spinlocks + and rwlocks inlined at each call site. This makes the kernel + somewhat bigger, but can be useful when profiling the kernel. + + If in doubt, say N. + source "security/Kconfig" source "crypto/Kconfig" -- 2.53.0