call dump_queues() only when DEBUG_THREAD_KERN is defined, save some

cpu cycles.
This commit is contained in:
David Xu 2003-05-05 05:01:19 +00:00
parent 859992daa9
commit f508d26091
2 changed files with 4 additions and 0 deletions

View file

@ -820,7 +820,9 @@ kse_sched_multi(struct kse *curkse)
kse_check_signals(curkse);
KSE_SCHED_LOCK(curkse, curkse->k_kseg);
#ifdef DEBUG_THREAD_KERN
dump_queues(curkse);
#endif
/* Check if there are no threads ready to run: */
while (((curthread = KSE_RUNQ_FIRST(curkse)) == NULL) &&

View file

@ -820,7 +820,9 @@ kse_sched_multi(struct kse *curkse)
kse_check_signals(curkse);
KSE_SCHED_LOCK(curkse, curkse->k_kseg);
#ifdef DEBUG_THREAD_KERN
dump_queues(curkse);
#endif
/* Check if there are no threads ready to run: */
while (((curthread = KSE_RUNQ_FIRST(curkse)) == NULL) &&