cvs commit: src/sys/kern subr_power.c

Warner Losh imp at FreeBSD.org
Wed Nov 9 07:32:03 GMT 2005


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


More information about the cvs-src mailing list