powerpc: Add kconfig option to use jump labels for cpu/mmu_has_feature()
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 27 Jul 2016 12:46:29 +0000 (22:46 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 Aug 2016 01:15:04 +0000 (11:15 +1000)
Add a kconfig option to control whether we use jump label for the
cpu/mmu_has_feature() checks. Currently this does nothing, but we will
enabled it in the subsequent patches.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig.debug

index 171047822b561dccb1a72e60c8bc957d43c1588e..36d7e345f5996e8de5e97fe0c9d3e4ac3c6f35a4 100644 (file)
@@ -60,6 +60,15 @@ 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 FTR_FIXUP_SELFTEST
        bool "Run self-tests of the feature-fixup code"
        depends on DEBUG_KERNEL
This page took 0.024882 seconds and 5 git commands to generate.