pause_sbt(): Take the cold path (ie. use DELAY()) if KDB is active

This fixes a panic in the i915 driver when one uses debug.kdb.enter=1
under vt(4).

PR:		193269
Reported by:	emaste@
Submitted by:	avg@
MFC after:	3 days
This commit is contained in:
Jean-Sébastien Pédron 2014-09-08 08:44:50 +00:00
parent afa0a6efe0
commit ffea80b445
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271253

View file

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