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):
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to