diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-07-27 08:46:29 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-07-31 21:15:04 -0400 |
commit | bfbfc8a43c028fe3c77c00c4368890e004ca268e (patch) | |
tree | 1da989af301dbafe5dfc460345a8ecc564c6ec22 /arch/powerpc | |
parent | b92a226e528423b8d249dd09bb450d53361fbfcb (diff) |
powerpc: Add kconfig option to use jump labels for cpu/mmu_has_feature()
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/Kconfig.debug | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index 171047822b56..36d7e345f599 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug | |||
@@ -60,6 +60,15 @@ config CODE_PATCHING_SELFTEST | |||
60 | depends on DEBUG_KERNEL | 60 | depends on DEBUG_KERNEL |
61 | default n | 61 | default n |
62 | 62 | ||
63 | config JUMP_LABEL_FEATURE_CHECKS | ||
64 | bool "Enable use of jump label for cpu/mmu_has_feature()" | ||
65 | depends on JUMP_LABEL | ||
66 | default y | ||
67 | help | ||
68 | Selecting this options enables use of jump labels for some internal | ||
69 | feature checks. This should generate more optimal code for those | ||
70 | checks. | ||
71 | |||
63 | config FTR_FIXUP_SELFTEST | 72 | config FTR_FIXUP_SELFTEST |
64 | bool "Run self-tests of the feature-fixup code" | 73 | bool "Run self-tests of the feature-fixup code" |
65 | depends on DEBUG_KERNEL | 74 | depends on DEBUG_KERNEL |