]> git.openpandora.org Git - pandora-kernel.git/commitdiff
locking/static_keys: Add selftest
authorPeter Zijlstra <peterz@infradead.org>
Mon, 27 Jul 2015 16:32:09 +0000 (18:32 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 3 Aug 2015 09:34:16 +0000 (11:34 +0200)
Add a little selftest that validates all combinations.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/Kconfig
kernel/jump_label.c

index 8a8ea7110de84482a5c33e53a50d0fc908998f3e..a71cdbe2a04d7c5f4c581c485d4a71724275810a 100644 (file)
@@ -71,6 +71,12 @@ config JUMP_LABEL
         ( On 32-bit x86, the necessary options added to the compiler
           flags may increase the size of the kernel slightly. )
 
+config STATIC_KEYS_SELFTEST
+       bool "Static key selftest"
+       depends on JUMP_LABEL
+       help
+         Boot time self-test of the branch patching code.
+
 config OPTPROBES
        def_bool y
        depends on KPROBES && HAVE_OPTPROBES
Simple merge