diff options
author | James Morse <[email protected]> | 2015-07-21 13:23:30 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2015-07-27 11:08:41 +0100 |
commit | 91a5cefa2f98bdd3404c2fba57048c4fa225cc37 (patch) | |
tree | 269b9169b6427df0eca8f3883aa426a9dd98e6fe /arch/arm64/kernel/armv8_deprecated.c | |
parent | 18ffa046c509d0cd011eeea2c0418f2d014771fc (diff) |
arm64: kernel: Add optional CONFIG_ parameter to ALTERNATIVE()
Some uses of ALTERNATIVE() may depend on a feature that is disabled at
compile time by a Kconfig option. In this case the unused alternative
instructions waste space, and if the original instruction is a nop, it
wastes time and space.
This patch adds an optional 'config' option to ALTERNATIVE() and
alternative_insn that allows the compiler to remove both the original
and alternative instructions if the config option is not defined.
Suggested-by: Catalin Marinas <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: James Morse <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'arch/arm64/kernel/armv8_deprecated.c')
0 files changed, 0 insertions, 0 deletions