riscv: alternative: patch alternatives in the vDSO
authorJisheng Zhang <jszhang@kernel.org>
Sat, 28 Jan 2023 17:28:53 +0000 (01:28 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 1 Feb 2023 07:29:42 +0000 (23:29 -0800)
commitcabfd146b371462ed480a968f98eb0c2c80e3c8a
tree38df344a6023b4f31d3b03877eb0b550b7d0a820
parent8d23e94a443388e81c42ea7e476a5d79c1c795c9
riscv: alternative: patch alternatives in the vDSO

Make it possible to use alternatives in the vDSO, so that better
implementations can be used if possible.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20230128172856.3814-11-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/vdso.h
arch/riscv/kernel/alternative.c
arch/riscv/kernel/vdso.c
arch/riscv/kernel/vdso/vdso.lds.S