riscv: Add jump-label implementation
authorEmil Renner Berthing <kernel@esmil.dk>
Tue, 14 Jul 2020 07:40:44 +0000 (09:40 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 30 Jul 2020 18:37:43 +0000 (11:37 -0700)
commitebc00dde8a975a543f5e1a7cdac93fef89fefe58
treee965bd70c1475527a1282e166f47c45b43ce8129
parent11a54f422b0d2680be57bbb9f85696ef89d9cda1
riscv: Add jump-label implementation

Add jump-label implementation based on the ARM64 version
and add CONFIG_JUMP_LABEL=y to the defconfigs.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Reviewed-by: Björn Töpel <bjorn.topel@gmail.com>
Tested-by: Björn Töpel <bjorn.topel@gmail.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Documentation/features/core/jump-labels/arch-support.txt
arch/riscv/Kconfig
arch/riscv/configs/defconfig
arch/riscv/configs/nommu_k210_defconfig
arch/riscv/configs/nommu_virt_defconfig
arch/riscv/configs/rv32_defconfig
arch/riscv/include/asm/jump_label.h [new file with mode: 0644]
arch/riscv/kernel/Makefile
arch/riscv/kernel/jump_label.c [new file with mode: 0644]