riscv: implement ALTERNATIVE_2 macro
authorHeiko Stuebner <heiko@sntech.de>
Wed, 11 May 2022 19:29:13 +0000 (21:29 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 12 May 2022 04:36:32 +0000 (21:36 -0700)
commitfbdba60b8119f60887974dd3d7adb537d71c18b4
tree065357654a47a07726287eb72864268b66d0dfef
parenta8e910168bbad5c901202727470e601eb2489ec1
riscv: implement ALTERNATIVE_2 macro

When the alternatives were added the commit already provided a template
on how to implement 2 different alternatives for one piece of code.

Make this usable.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
Link: https://lore.kernel.org/r/20220511192921.2223629-5-heiko@sntech.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/alternative-macros.h