mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: akpm@osdl.org, olh@suse.de
Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH][PPC64] Kconfig bits for CONFIG_SPINLINE
Date: Thu, 13 May 2004 21:33:12 +1000	[thread overview]
Message-ID: <16547.23800.280519.689864@cargo.ozlabs.ibm.com> (raw)

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.)

Please apply.

Thanks,
Paul.

diff -urN linux-2.5/arch/ppc64/Kconfig g5-ppc64/arch/ppc64/Kconfig
--- linux-2.5/arch/ppc64/Kconfig	2004-05-11 07:53:04.000000000 +1000
+++ g5-ppc64/arch/ppc64/Kconfig	2004-05-13 21:08:47.621961712 +1000
@@ -93,6 +93,16 @@
 	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
@@ -407,7 +417,17 @@
 	  debugging info resulting in a larger kernel image.
 	  Say Y here only if you plan to use gdb to debug the kernel.
 	  If you don't debug the kernel, you can say N.
-	  
+
+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.
+
 endmenu
 
 source "security/Kconfig"

                 reply	other threads:[~2004-05-13 11:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16547.23800.280519.689864@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olh@suse.de \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®