]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
RISC-V: Add missing jump label initialization
authorAnup Patel <anup.patel@wdc.com>
Fri, 6 Nov 2020 07:53:59 +0000 (13:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Dec 2020 07:51:59 +0000 (08:51 +0100)
[ 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>
arch/riscv/kernel/setup.c

index 2c6dd329312bd282a830685cc57331a90944889c..3de5234b6de5b46ad18fd41880c3c06a096a1cb5 100644 (file)
@@ -69,6 +69,7 @@ void __init setup_arch(char **cmdline_p)
 
        *cmdline_p = boot_command_line;
 
+       jump_label_init();
        parse_early_param();
 
        setup_bootmem();