mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 23:02:02 -04:00
call dump_queues() only when DEBUG_THREAD_KERN is defined, save some
cpu cycles.
This commit is contained in:
parent
859992daa9
commit
f508d26091
2 changed files with 4 additions and 0 deletions
|
|
@ -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) &&
|
||||
|
|
|
|||
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue