]> git.baikalelectronics.ru Git - kernel.git/commit
x86: c_p_a(), add simple self test at boot
authorAndi Kleen <ak@suse.de>
Wed, 30 Jan 2008 12:33:43 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:43 +0000 (13:33 +0100)
commitf170270331eb48a9d97d3cc6e9794dcf6c256016
tree0cd340b81cea0b6f84993c005e7f6e0b4b5aa63a
parent24e654fc21d888ee28f9bb0f9b256e116caba0d7
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>
arch/x86/mm/Makefile_32
arch/x86/mm/Makefile_64
arch/x86/mm/pageattr-test.c [new file with mode: 0644]