#ifdef DDB without including "opt_ddb.h"
authorYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Thu, 11 Sep 2008 01:11:42 +0000 (01:11 +0000)
committerYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Thu, 11 Sep 2008 01:11:42 +0000 (01:11 +0000)
sys/kern/kern_spinlock.c
sys/kern/lwkt_thread.c

index 02829a6..32a358c 100644 (file)
  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $DragonFly: src/sys/kern/kern_spinlock.c,v 1.15 2008/06/04 04:34:54 nth Exp $
+ * $DragonFly: src/sys/kern/kern_spinlock.c,v 1.16 2008/09/11 01:11:42 y0netan1 Exp $
  */
 
+#include "opt_ddb.h"
+
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/types.h>
index 04e3537..4afb426 100644 (file)
@@ -31,7 +31,7 @@
  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  * 
- * $DragonFly: src/sys/kern/lwkt_thread.c,v 1.118 2008/09/09 07:21:54 dillon Exp $
+ * $DragonFly: src/sys/kern/lwkt_thread.c,v 1.119 2008/09/11 01:11:42 y0netan1 Exp $
  */
 
 /*
@@ -40,6 +40,7 @@
  * to use a critical section to avoid problems.  Foreign thread 
  * scheduling is queued via (async) IPIs.
  */
+#include "opt_ddb.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <machine/stdarg.h>
 #include <machine/smp.h>
 
+#ifdef DDB
+#include <ddb/ddb.h>
+#endif
+
 static MALLOC_DEFINE(M_THREAD, "thread", "lwkt threads");
 
 static int untimely_switch = 0;