summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-11-06 10:53:59 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-02 10:51:59 +0300
commitb7a80f5900c9a633ee0825708df5050722eb4da8 (patch)
tree2da62b2188706ca3781cb199f2da680e4e87575d
parente13b6055d8a94b1a8d95a662783e0392b70ba5af (diff)
downloadlinux-b7a80f5900c9a633ee0825708df5050722eb4da8.tar.xz
RISC-V: Add missing jump label initialization
[ Upstream commit 6134b110f97178d6919441a82dc91a7f3664b4e0 ] The jump_label_init() should be called from setup_arch() very early for proper functioning of jump label support. Fixes: ebc00dde8a97 ("riscv: Add jump-label implementation") Signed-off-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--arch/riscv/kernel/setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c
index 2c6dd329312b..3de5234b6de5 100644
--- a/arch/riscv/kernel/setup.c
+++ b/arch/riscv/kernel/setup.c
@@ -69,6 +69,7 @@ void __init setup_arch(char **cmdline_p)
*cmdline_p = boot_command_line;
+ jump_label_init();
parse_early_param();
setup_bootmem();