summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/Makefile_32
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2008-01-30 13:33:43 +0100
committerIngo Molnar <mingo@elte.hu>2008-01-30 13:33:43 +0100
commitfa2d8369a1e0e5dd0fdaaba9d40ca5187f4cd20b (patch)
tree0cd340b81cea0b6f84993c005e7f6e0b4b5aa63a /arch/x86/mm/Makefile_32
parentf0646e43acb18f0e00b00085dc88bc3f403e7930 (diff)
downloadop-kernel-dev-fa2d8369a1e0e5dd0fdaaba9d40ca5187f4cd20b.zip
op-kernel-dev-fa2d8369a1e0e5dd0fdaaba9d40ca5187f4cd20b.tar.gz
x86: c_p_a(), add simple self test at boot
Since change_page_attr() is tricky code it is good to have some regression test code. This patch maps and unmaps some random pages in the direct mapping at boot and then dumps the state and does some simple sanity checks. Add it with a CONFIG option. 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/mm/Makefile_32')
-rw-r--r--arch/x86/mm/Makefile_321
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/mm/Makefile_32 b/arch/x86/mm/Makefile_32
index 6a5e981..be2f551 100644
--- a/arch/x86/mm/Makefile_32
+++ b/arch/x86/mm/Makefile_32
@@ -4,6 +4,7 @@
obj-y := init_32.o pgtable_32.o fault_32.o ioremap_32.o extable.o pageattr_32.o mmap.o
+obj-$(CONFIG_CPA_DEBUG) += pageattr-test.o
obj-$(CONFIG_NUMA) += discontig_32.o
obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
obj-$(CONFIG_HIGHMEM) += highmem_32.o
OpenPOWER on IntegriCloud