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:
parent
fc4d679fd7
commit
bc64e52679
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300489
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user