Re: [PATCH] x86: mtrr_cleanup update command line and doc mtrr-cleanup-debug v2

Previous thread: [PATCH] x86: mtrr_cleanup update command line and doc mtrrcleanup_debug by Yinghai Lu on Tuesday, September 30, 2008 - 3:01 pm. (2 messages)

Next thread: [PATCH] PCIE: Reduce cannot add device warnings to KERN_INFO by Sitsofe Wheeler on Tuesday, September 30, 2008 - 3:22 pm. (1 message)
From: Yinghai Lu
Date: Tuesday, September 30, 2008 - 3:06 pm

change enable_mtrr_cleanup to mtrr-cleanup, disable_mtrr_cleanup to nomtrr-cleanup.
so doc mtrr-cleanup-debug.

v2: some _ to -

and change MTRR_SANITIZER to def_bool y

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

---
 Documentation/kernel-parameters.txt |    7 +++++--
 arch/x86/Kconfig                    |    6 +++---
 arch/x86/kernel/cpu/mtrr/main.c     |    6 +++---
 3 files changed, 11 insertions(+), 8 deletions(-)

Index: linux-2.6/Documentation/kernel-parameters.txt
===================================================================
--- linux-2.6.orig/Documentation/kernel-parameters.txt
+++ linux-2.6/Documentation/kernel-parameters.txt
@@ -614,12 +614,15 @@ and is between 256 and 4096 characters.
 			See drivers/char/README.epca and
 			Documentation/digiepca.txt.
 
-	disable_mtrr_cleanup [X86]
-	enable_mtrr_cleanup [X86]
+	nomtrr-cleanup [X86]
+	mtrr-cleanup [X86]
 			The kernel tries to adjust MTRR layout from continuous
 			to discrete, to make X server driver able to add WB
 			entry later. This parameter enables/disables that.
 
+	mtrr-cleanup-debug [X86]
+			print out more debug info for mtrr cleanup.
+
 	mtrr_chunk_size=nn[KMG] [X86]
 			used for mtrr cleanup. It is largest continous chunk
 			that could hold holes aka. UC entries.
Index: linux-2.6/arch/x86/Kconfig
===================================================================
--- linux-2.6.orig/arch/x86/Kconfig
+++ linux-2.6/arch/x86/Kconfig
@@ -1243,18 +1243,18 @@ config MTRR
 	  See <file:Documentation/x86/mtrr.txt> for more information.
 
 config MTRR_SANITIZER
-	bool
+	def_bool y
 	prompt "MTRR cleanup support"
 	depends on MTRR
 	help
 	  Convert MTRR layout from continuous to discrete, so X drivers can
 	  add writeback entries.
 
-	  Can be disabled with disable_mtrr_cleanup on the kernel command line.
+	  Can be disabled with nomtrr-cleanup on the kernel command line.
 	  The largest mtrr entry size for a continous block can be set with
 	  mtrr_chunk_size.
 
-	  If ...
From: H. Peter Anvin
Date: Tuesday, September 30, 2008 - 4:11 pm

Could you split that into two patches, please?

	-hpa
--

From: Yinghai Lu
Date: Tuesday, September 30, 2008 - 4:13 pm

will split into three.

YH
--

Previous thread: [PATCH] x86: mtrr_cleanup update command line and doc mtrrcleanup_debug by Yinghai Lu on Tuesday, September 30, 2008 - 3:01 pm. (2 messages)

Next thread: [PATCH] PCIE: Reduce cannot add device warnings to KERN_INFO by Sitsofe Wheeler on Tuesday, September 30, 2008 - 3:22 pm. (1 message)