Merge remote-tracking branch 'stable/linux-5.15.y' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / init / main.c
index 2b9ba7e..cf79b5a 100644 (file)
@@ -1046,15 +1046,11 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void)
        /*
         * For best initial stack canary entropy, prepare it after:
         * - setup_arch() for any UEFI RNG entropy and boot cmdline access
-        * - timekeeping_init() for ktime entropy used in rand_initialize()
+        * - timekeeping_init() for ktime entropy used in random_init()
         * - time_init() for making random_get_entropy() work on some platforms
-        * - rand_initialize() to get any arch-specific entropy like RDRAND
-        * - add_latent_entropy() to get any latent entropy
-        * - adding command line entropy
+        * - random_init() to initialize the RNG from from early entropy sources
         */
-       rand_initialize();
-       add_latent_entropy();
-       add_device_randomness(command_line, strlen(command_line));
+       random_init(command_line);
        boot_init_stack_canary();
 
        perf_event_init();