summaryrefslogtreecommitdiff
path: root/arch/x86/Kconfig.debug
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2008-01-30 15:33:42 +0300
committerIngo Molnar <mingo@elte.hu>2008-01-30 15:33:42 +0300
commit0c42f392767d3592e1cf676857d398ef69be7c9c (patch)
tree0ae79fb0424ed9340ad973bea013251e05553be4 /arch/x86/Kconfig.debug
parentb4416a1be86b0c7bdde4e6ba526715c1a055746f (diff)
downloadlinux-0c42f392767d3592e1cf676857d398ef69be7c9c.tar.xz
c_p_a(): do a simple self test at boot
When CONFIG_DEBUG_RODATA is enabled undo the ro mapping and redo it again. This gives some simple testing for change_page_attr(). Signed-off-by: Andi Kleen <ak@suse.de> Acked-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/Kconfig.debug')
-rw-r--r--arch/x86/Kconfig.debug5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug
index 9bb61e1aed69..38211ff0447f 100644
--- a/arch/x86/Kconfig.debug
+++ b/arch/x86/Kconfig.debug
@@ -204,4 +204,9 @@ config DEBUG_BOOT_PARAMS
help
This option will cause struct boot_params to be exported via debugfs.
+config CPA_DEBUG
+ bool "CPA self test code"
+ help
+ Do change_page_attr self tests at boot.
+
endmenu