Skip to content

Commit bfbfc8a

Browse files
committed
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>
1 parent b92a226 commit bfbfc8a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/powerpc/Kconfig.debug

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ config CODE_PATCHING_SELFTEST
6060
depends on DEBUG_KERNEL
6161
default n
6262

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+
6372
config FTR_FIXUP_SELFTEST
6473
bool "Run self-tests of the feature-fixup code"
6574
depends on DEBUG_KERNEL

0 commit comments

Comments
 (0)