Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2016 21:51:56 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r297366 - head/sys/dev/random
Message-ID:  <201603282151.u2SLpuva031633@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603282151.u2SLpuva031633>