@@ -361,24 +361,6 @@ static void __init efi_debugfs_init(void)
361
361
static inline void efi_debugfs_init (void ) {}
362
362
#endif
363
363
364
- static void refresh_nv_rng_seed (struct work_struct * work )
365
- {
366
- u8 seed [EFI_RANDOM_SEED_SIZE ];
367
-
368
- get_random_bytes (seed , sizeof (seed ));
369
- efi .set_variable (L"RandomSeed" , & LINUX_EFI_RANDOM_SEED_TABLE_GUID ,
370
- EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS |
371
- EFI_VARIABLE_RUNTIME_ACCESS , sizeof (seed ), seed );
372
- memzero_explicit (seed , sizeof (seed ));
373
- }
374
- static int refresh_nv_rng_seed_notification (struct notifier_block * nb , unsigned long action , void * data )
375
- {
376
- static DECLARE_WORK (work , refresh_nv_rng_seed ) ;
377
- schedule_work (& work );
378
- return NOTIFY_DONE ;
379
- }
380
- static struct notifier_block refresh_nv_rng_seed_nb = { .notifier_call = refresh_nv_rng_seed_notification };
381
-
382
364
/*
383
365
* We register the efi subsystem with the firmware subsystem and the
384
366
* efivars subsystem with the efi subsystem, if the system was booted with
@@ -451,9 +433,6 @@ static int __init efisubsys_init(void)
451
433
platform_device_register_simple ("efi_secret" , 0 , NULL , 0 );
452
434
#endif
453
435
454
- if (efi_rt_services_supported (EFI_RT_SUPPORTED_SET_VARIABLE ))
455
- execute_with_initialized_rng (& refresh_nv_rng_seed_nb );
456
-
457
436
return 0 ;
458
437
459
438
err_remove_group :
0 commit comments