Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jan 2019 07:48:49 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r343545 - stable/11/sys/kern
Message-ID:  <201901290748.x0T7mnhu094053@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Tue Jan 29 07:48:49 2019
New Revision: 343545
URL: https://svnweb.freebsd.org/changeset/base/343545

Log:
  MFC r343038: Use TD_IS_IDLETHREAD instead of unrolled version.

Modified:
  stable/11/sys/kern/kern_ktr.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/kern_ktr.c
==============================================================================
--- stable/11/sys/kern/kern_ktr.c	Tue Jan 29 07:47:57 2019	(r343544)
+++ stable/11/sys/kern/kern_ktr.c	Tue Jan 29 07:48:49 2019	(r343545)
@@ -339,7 +339,7 @@ ktr_tracepoint(uint64_t mask, const char *file, int li
 #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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901290748.x0T7mnhu094053>