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.

Obtained from:	kmacy @
MFC after:	1 week
This commit is contained in:
Hans Petter Selasky 2016-05-23 10:31:54 +00:00
parent fc4d679fd7
commit bc64e52679

View File

@ -327,7 +327,7 @@ pause_sbt(const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags)
if (sbt == 0)
sbt = tick_sbt;
if (cold || kdb_active) {
if (cold || kdb_active || SCHEDULER_STOPPED()) {
/*
* We delay one second at a time to avoid overflowing the
* system specific DELAY() function(s):