riscv: Don't duplicate _ALTERNATIVE_CFG* macros
authorAndrew Jones <ajones@ventanamicro.com>
Tue, 29 Nov 2022 15:00:53 +0000 (16:00 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Sat, 10 Dec 2022 02:14:24 +0000 (18:14 -0800)
commit26fb4b90b745a808e94a81dc732d440c285fa74b
tree1954704396df0ddb9725824e42f8bcf984c608e9
parentbb2efcde594628ae08ee6e4be51b2047df9d2d06
riscv: Don't duplicate _ALTERNATIVE_CFG* macros

Reduce clutter by only defining the _ALTERNATIVE_CFG* macros once,
rather than once for assembly and once for C. To do that, we need to
add __ALTERNATIVE_CFG* macros to the assembly side, but those are
one-liners. Also take the opportunity to do a bit of reformatting,
taking full advantage of the fact checkpatch gives us 100 char lines.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20221129150053.50464-5-ajones@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/alternative-macros.h