Merge tag 'libnvdimm-for-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm...
[cascardo/linux.git] / arch / powerpc / Kconfig.debug
index 1710478..63292f6 100644 (file)
@@ -60,6 +60,25 @@ config CODE_PATCHING_SELFTEST
        depends on DEBUG_KERNEL
        default n
 
+config JUMP_LABEL_FEATURE_CHECKS
+       bool "Enable use of jump label for cpu/mmu_has_feature()"
+       depends on JUMP_LABEL
+       default y
+       help
+         Selecting this options enables use of jump labels for some internal
+         feature checks. This should generate more optimal code for those
+         checks.
+
+config JUMP_LABEL_FEATURE_CHECK_DEBUG
+       bool "Do extra check on feature fixup calls"
+       depends on DEBUG_KERNEL && JUMP_LABEL_FEATURE_CHECKS
+       default n
+       help
+         This tries to catch incorrect usage of cpu_has_feature() and
+         mmu_has_feature() in the code.
+
+         If you don't know what this means, say N.
+
 config FTR_FIXUP_SELFTEST
        bool "Run self-tests of the feature-fixup code"
        depends on DEBUG_KERNEL