mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-24 16:10:11 +00:00
Don't start the random harvester process until timers are working.
This is a no-op currently, but in kernels with earlier AP startup, the random kthread was trying to use timeouts with sleeps before timers are working. Wait until SI_SUB_KICK_SCHEDULER to start the random kproc. Reviewed by: delphij, imp, markm Approved by: so Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D5712
This commit is contained in:
parent
cb49b65481
commit
dd52390836
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297366
@ -183,7 +183,8 @@ random_kthread(void)
|
||||
/* NOTREACHED */
|
||||
}
|
||||
/* This happens well after SI_SUB_RANDOM */
|
||||
SYSINIT(random_device_h_proc, SI_SUB_CREATE_INIT, SI_ORDER_ANY, kproc_start, &random_proc_kp);
|
||||
SYSINIT(random_device_h_proc, SI_SUB_KICK_SCHEDULER, SI_ORDER_ANY, kproc_start,
|
||||
&random_proc_kp);
|
||||
|
||||
/*
|
||||
* Run through all fast sources reading entropy for the given
|
||||
|
Loading…
Reference in New Issue
Block a user