svn commit: r297366 - head/sys/dev/random
John Baldwin
jhb at FreeBSD.org
Mon Mar 28 21:51:57 UTC 2016
Author: jhb
Date: Mon Mar 28 21:51:56 2016
New Revision: 297366
URL: https://svnweb.freebsd.org/changeset/base/297366
Log:
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
Modified:
head/sys/dev/random/random_harvestq.c
Modified: head/sys/dev/random/random_harvestq.c
==============================================================================
--- head/sys/dev/random/random_harvestq.c Mon Mar 28 20:16:29 2016 (r297365)
+++ head/sys/dev/random/random_harvestq.c Mon Mar 28 21:51:56 2016 (r297366)
@@ -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
More information about the svn-src-all
mailing list