From 0c42f392767d3592e1cf676857d398ef69be7c9c Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Wed, 30 Jan 2008 13:33:42 +0100 Subject: 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 Acked-by: Jan Beulich Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- arch/x86/Kconfig.debug | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch/x86/Kconfig.debug') 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 -- cgit v1.2.3