]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "arm64: Initialize jump labels before setup_machine_fdt()"
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 15 Jun 2022 13:22:38 +0000 (14:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 15 Jun 2022 15:14:32 +0000 (16:14 +0100)
This reverts commit ed3567c874b0691afa1c1df322b86b5a2464ad57.

The reverted patch was needed as a fix after commit 8f20d58ba28b
("random: use static branch for crng_ready()"). However, this was
already fixed by 2453a6eed43e ("random: do not use jump labels before
they are initialized") and hence no longer necessary to initialise jump
labels before setup_machine_fdt().

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/setup.c

index cf3a759f10d4ef55e6b58c3fc581dde5bff93a9f..fea3223704b6339a0381ddee334168ec5d83201b 100644 (file)
@@ -303,14 +303,13 @@ void __init __no_sanitize_address setup_arch(char **cmdline_p)
        early_fixmap_init();
        early_ioremap_init();
 
+       setup_machine_fdt(__fdt_pointer);
+
        /*
         * Initialise the static keys early as they may be enabled by the
-        * cpufeature code, early parameters, and DT setup.
+        * cpufeature code and early parameters.
         */
        jump_label_init();
-
-       setup_machine_fdt(__fdt_pointer);
-
        parse_early_param();
 
        /*