Skip to content

Commit

Permalink
powerpc: Add kconfig option to use jump labels for cpu/mmu_has_feature()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mpe committed Aug 1, 2016
1 parent b92a226 commit bfbfc8a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/powerpc/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bfbfc8a

Please sign in to comment.