From fdcee40a0e99d1204ed59eb7379754e4f3c6a9cb Mon Sep 17 00:00:00 2001 From: marcel Date: Sat, 10 Jul 2004 21:38:22 +0000 Subject: [PATCH] Update for the KDB framework: o Call kdb_backtrace() instead of backtrace(). --- sys/kern/sched_ule.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index f35c744d47fe..5ea303b68ccd 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include @@ -42,9 +43,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#ifdef DDB -#include -#endif #ifdef KTRACE #include #include @@ -1156,7 +1154,7 @@ sched_switch(struct thread *td, struct thread *newtd) if (ke->ke_runq) { kseq_load_rem(KSEQ_CPU(ke->ke_cpu), ke); } else if ((td->td_flags & TDF_IDLETD) == 0) - backtrace(); + kdb_backtrace(); /* * We will not be on the run queue. So we must be * sleeping or similar.