Date: Wed, 9 Nov 2005 07:32:02 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_power.c Message-ID: <200511090732.jA97W2ir099375@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2005-11-09 07:32:02 UTC FreeBSD src repository Modified files: sys/kern subr_power.c Log: Kick off the suspend sequence from the keyboard in a SWI rather than in the hardware interrupt context (even if it is likely just an ithread). We don't document that suspend/resume routines are run from such a context and some of the things that happen in those routines aren't interrupt safe. Since there's no real need to run from that context, this restores assumptions that suspend routines have made. This fixes Thierry Herbelot's 'Trying to sleep while sleeping is prohibited' problem. Revision Changes Path 1.6 +13 -2 src/sys/kern/subr_power.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511090732.jA97W2ir099375>