powerpc: Add tests of the code patching routines
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 24 Jun 2008 01:32:32 +0000 (11:32 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 1 Jul 2008 01:28:22 +0000 (11:28 +1000)
commitae0dc73625f9b0e636ccd130e394c9b654a062fb
tree1471cae752e3db5c2541771ec34ae8578e6984f5
parent411781a290b0d0a31fd73826b3ee110f1e3cc3b6
powerpc: Add tests of the code patching routines

Add tests of the existing code patching routines, as well as the new
routines added in the last commit.  The self-tests are run late in boot
when CONFIG_CODE_PATCHING_SELFTEST=y, which depends on DEBUG_KERNEL=y.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/Kconfig.debug
arch/powerpc/lib/code-patching.c