Use TD_IS_IDLETHREAD instead of unrolled version.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2019-01-15 06:44:37 +00:00
parent 5a8eee2bb4
commit 305bb04ee4

View file

@ -341,7 +341,7 @@ ktr_tracepoint(uint64_t mask, const char *file, int line, const char *format,
#ifdef KTR_ALQ
if (ktr_alq_enabled) {
if (td->td_critnest == 0 &&
(td->td_flags & TDF_IDLETD) == 0 &&
(TD_IS_IDLETHREAD(td)) == 0 &&
td != ald_thread) {
if (ktr_alq_max && ktr_alq_cnt > ktr_alq_max)
goto done;