Date: Fri, 3 Jun 2016 09:17:22 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r301262 - stable/9/sys/kern Message-ID: <201606030917.u539HMJY032563@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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):
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606030917.u539HMJY032563>