[Midnightbsd-cvs] src [9341] trunk/sys/cam/cam_xpt.c: Expose CAM_BOOT_DELAY as a kernel conf item now.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Mar 4 11:11:48 EST 2017


Revision: 9341
          http://svnweb.midnightbsd.org/src/?rev=9341
Author:   laffer1
Date:     2017-03-04 11:11:48 -0500 (Sat, 04 Mar 2017)
Log Message:
-----------
Expose CAM_BOOT_DELAY as a kernel conf item now.

This allows users who boot without loader to adjust their environments
around slightly buggy or slow hardware.

Modified Paths:
--------------
    trunk/sys/cam/cam_xpt.c

Modified: trunk/sys/cam/cam_xpt.c
===================================================================
--- trunk/sys/cam/cam_xpt.c	2017-03-04 16:11:07 UTC (rev 9340)
+++ trunk/sys/cam/cam_xpt.c	2017-03-04 16:11:48 UTC (rev 9341)
@@ -908,7 +908,14 @@
 	mtx_init(&xsoftc.xpt_lock, "XPT lock", NULL, MTX_DEF);
 	mtx_init(&xsoftc.xpt_topo_lock, "XPT topology lock", NULL, MTX_DEF);
 
+#ifdef CAM_BOOT_DELAY
 	/*
+	 * Override this value at compile time to assist our users
+	 * who don't use loader to boot a kernel.
+	 */
+	xsoftc.boot_delay = CAM_BOOT_DELAY;
+#endif
+	/*
 	 * The xpt layer is, itself, the equivelent of a SIM.
 	 * Allow 16 ccbs in the ccb pool for it.  This should
 	 * give decent parallelism when we probe busses and



More information about the Midnightbsd-cvs mailing list