diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-10 21:38:22 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-10 21:38:22 +0000 |
commit | fdcee40a0e99d1204ed59eb7379754e4f3c6a9cb (patch) | |
tree | 1b529b3dfe665c6b13e14a35893215819a065d73 /sys | |
parent | 91cc6ca5e38482434bf47e83e6eb146d17bb6979 (diff) | |
download | FreeBSD-src-fdcee40a0e99d1204ed59eb7379754e4f3c6a9cb.zip FreeBSD-src-fdcee40a0e99d1204ed59eb7379754e4f3c6a9cb.tar.gz |
Update for the KDB framework:
o Call kdb_backtrace() instead of backtrace().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sched_ule.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index f35c744..5ea303b 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> +#include <sys/kdb.h> #include <sys/kernel.h> #include <sys/ktr.h> #include <sys/lock.h> @@ -42,9 +43,6 @@ __FBSDID("$FreeBSD$"); #include <sys/sysctl.h> #include <sys/sysproto.h> #include <sys/vmmeter.h> -#ifdef DDB -#include <ddb/ddb.h> -#endif #ifdef KTRACE #include <sys/uio.h> #include <sys/ktrace.h> @@ -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. |