svn commit: r301262 - stable/9/sys/kern

Hans Petter Selasky hselasky at FreeBSD.org
Fri Jun 3 09:17:23 UTC 2016


Author: hselasky
Date: Fri Jun  3 09:17:22 2016
New Revision: 301262
URL: https://svnweb.freebsd.org/changeset/base/301262

Log:
  MFC r300489:
  Use DELAY() instead of _sleep() when SCHEDULER_STOPPED() is set inside
  pause_sbt(). This allows pause() to continue working during a panic()
  which is not invoking KDB. This is useful when debugging graphics
  drivers using the LinuxKPI.

Modified:
  stable/9/sys/kern/kern_synch.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/kern_synch.c
==============================================================================
--- stable/9/sys/kern/kern_synch.c	Fri Jun  3 09:10:37 2016	(r301261)
+++ stable/9/sys/kern/kern_synch.c	Fri Jun  3 09:17:22 2016	(r301262)
@@ -355,7 +355,7 @@ pause(const char *wmesg, int timo)
 	if (timo < 1)
 		timo = 1;
 
-	if (cold) {
+	if (cold || kdb_active || SCHEDULER_STOPPED()) {
 		/*
 		 * We delay one HZ at a time to avoid overflowing the
 		 * system specific DELAY() function(s):


More information about the svn-src-stable-9 mailing list