From nobody Tue Jul 30 14:39:32 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WYHtX4g5jz5S563; Tue, 30 Jul 2024 14:39:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYHtX473Hz52wy; Tue, 30 Jul 2024 14:39:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722350372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mQRMms8C1gM+/C2Skf6NCyGzDnWTSeolLNX6zqRCPSU=; b=R09bm1781GsRRmq4T/nap2LhGjZSBpj1JJZb+QP91BJHEeT6990GvWnzMSl3Mjd2envHtz m0f5lkRjfsjL6WXVIVpu9C7a4uJjiTzROXEtxcRYUI4/gxcbblbj7C8vnGkhq4EjX2Tdui ssfvfspNszXdeqE9hsxY/yXh5nW6JrvwQvZ52krVY8eFiyb4l5e4TVSkQP/Cu/JGphFPCk 8EfdKq4ckm3Iq2maJBY2mvU75KJIKQaQeMxwivUhEmxGX23Zi1PI2dQlrh+L9ZyK68dM1G MI3t5bf+Qg6bpXVoDL76AnD1uyIC8YiiuiBCjYOYKlO43T0Og48rR3ngrZutQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722350372; a=rsa-sha256; cv=none; b=kXPUORdWbNsas9WbMe/GTW4GemjHiiU608z5ZCL8GCSWN3X2cRn6+lDzt4JfzwglaK7Ks/ aDAzmA39lFcfqT4Yup1oL/tSzPpvwSDpTEt2sF4AUE9Ye151gpBKJf7fwNS5TpSlJVhASg isk+JVJG2SlTTpQ92sPmoIZgU9YlKvYDrTZxycMvp72ORdxMIooDTw8tMBglESyZxjaxa4 77CH33Fg+xmqrsF+T6jrJuQh4lOdSCLCXWs1mYLXw2FWqiK7MZGWY2p7E4bYV8t5XEKdwk CQRUeIt87nEaZH9PWL1IoDYVbVMJcT6d/zSRONFWrAZ2eC10GfL6yhNredg96g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722350372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mQRMms8C1gM+/C2Skf6NCyGzDnWTSeolLNX6zqRCPSU=; b=lr1suEluLPMPHwTE3pZLt8es3nfWuy6oOBZN+NU1F45Voo7LMzaZh/4fRLeRvu7fu9V01K tswlmNf/0351Dxefi9t5yNSoZjdabTqkFGuoZvLIAul872V5heLNUVtMuegSw4VbHg/Ml8 vBc5ttx4vAZDw0pOT8C8JMgifpl9K7HbPCUZU39++DrZF7UsEnhE3gf2CxnqZYzuTrtUrP O4bM9WueGA5OpLv5MRzM/ir7HvC5JdDfnlVW3+Y5TDdsiBwbx667XE+OigSxJUjhCHDAGL LG9gyZg+QECy0/bJrZ/+2U/EtBm+Wc2N/LJr6yMhwbP4Rno5HXA4YHbNDSlFqg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WYHtX3jVqzLgX; Tue, 30 Jul 2024 14:39:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46UEdWdR046265; Tue, 30 Jul 2024 14:39:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46UEdW0B046262; Tue, 30 Jul 2024 14:39:32 GMT (envelope-from git) Date: Tue, 30 Jul 2024 14:39:32 GMT Message-Id: <202407301439.46UEdW0B046262@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: c122d7ffad5e - main - ithread: Annotate a branch in ithread_execute_handlers() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c122d7ffad5efb31e1aa5035cb1a26ad2e479074 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=c122d7ffad5efb31e1aa5035cb1a26ad2e479074 commit c122d7ffad5efb31e1aa5035cb1a26ad2e479074 Author: Mark Johnston AuthorDate: 2024-07-30 14:36:35 +0000 Commit: Mark Johnston CommitDate: 2024-07-30 14:37:26 +0000 ithread: Annotate a branch in ithread_execute_handlers() No functional change intended. Reviewed by: kib, jhb MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D45491 --- sys/kern/kern_intr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index 6ccf758ae266..a4ec45d0c4f8 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -1203,8 +1203,9 @@ ithread_execute_handlers(struct proc *p, struct intr_event *ie) * number of back to back interrupts exceeds the storm threshold, * then enter storming mode. */ - if (intr_storm_threshold != 0 && ie->ie_count >= intr_storm_threshold && - !(ie->ie_flags & IE_SOFT)) { + if (__predict_false(intr_storm_threshold != 0 && + ie->ie_count >= intr_storm_threshold && + (ie->ie_flags & IE_SOFT) == 0)) { /* Report the message only once every second. */ if (ppsratecheck(&ie->ie_warntm, &ie->ie_warncnt, 1)) { printf(