Limit switch-from-interrupt warnings to once per thread to avoid an endless
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 20 Jul 2005 04:33:44 +0000 (04:33 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 20 Jul 2005 04:33:44 +0000 (04:33 +0000)
commita7422615665d46bba90c777e1cdcd2e6f62e9dc2
tree0a50daa91f0dd2434d764c70d21688207efb4787
parentddcc5e1066ec6a72d04f00f1627aafe5bbb1f23d
Limit switch-from-interrupt warnings to once per thread to avoid an endless
loop.  Generate a DDB backtrace when it occurs.

Note from Peter's report that it is possible for the idle thread to panic
if e.g. an IPI or FAST interrupt running in the idle thread's context panics.
This can result in highly unexpected operation and needs to be addressed.

Reported-by: Peter Avalos <pavalos@theshell.com>
sys/kern/lwkt_thread.c
sys/sys/thread.h