diff options
author | James Morse <james.morse@arm.com> | 2015-07-21 13:23:30 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-07-27 11:08:41 +0100 |
commit | 91a5cefa2f98bdd3404c2fba57048c4fa225cc37 (patch) | |
tree | 269b9169b6427df0eca8f3883aa426a9dd98e6fe /fs/ubifs/log.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 <catalin.marinas@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'fs/ubifs/log.c')
0 files changed, 0 insertions, 0 deletions