From nobody Wed Feb 15 16:43:01 2023 X-Original-To: dev-commits-src-all@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 4PH3m61Tjmz3qXP4; Wed, 15 Feb 2023 16:43:02 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PH3m611gnz3p1X; Wed, 15 Feb 2023 16:43:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676479382; 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=Y4XlB+R7mfIY4vguwG2phg2DzrMgLo2ObkOZQitFf58=; b=x6d0jxzYZC50LOzpgJtgZarmSkL6uw9WrSpSJ3lNXjOXw593J1grbfFxucjtpZ5p2HpcKJ I6FGyNNlfXqGAcE33d+fbkBC3IVhl0cpw+JejIfgjNwC5WI1Lh9vay8R7i4t8J5L02gC3t TCwlh0FD1WcxbkhEwCeC5HAm3fyPKezwq+fuVXiej59RPXP+HNXuVnitJLZXKqBirSrK+7 jSXhM2thGzgJB6nYrq5RlCrpOHwWQU1ROMQG9IRSJYk0GyAg7kna0pxni910lPQVT3ypCx aNSSVkSPO+knGyiVVeDEW/ah2RDmn+nkDLFYfDr/mezxQYo3kxTU2iT3YZ2icQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676479382; 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=Y4XlB+R7mfIY4vguwG2phg2DzrMgLo2ObkOZQitFf58=; b=PtLyxuT3s3Xf1E6hBRbZAArQHukGb6ODhbOFkD93/tKTP6mDoGssQoqXOOwF9qiIRcRpY2 ywKdeuUV0+CgmkBkV6mniEfFUTFn10xIOqnx8/hw4bN/8rmihDHL/5ja1O5ibzMVCICHds IcIMxZjilZWeWdWD1ZnX7SLtM7Lhtbnx21jlrIvbnbA5U9R7MS11xwS/ZHdJr04wIttG0e qxXzXk2eXt/FCMbyrf/eAmojRa/UsTZa8/whzmwloJ1tUEtzAau/jJauUKoPJ6CXu3GijD Z86deUrx5gzz7QMiY4aOqIYX4ktxCm9ADl9gBioPOF9acwaPF1Ue6iVmwf+o4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676479382; a=rsa-sha256; cv=none; b=f77pG5u+5BbsaLn8XnMGx2+vEsW9cPYwu5DrEy/ojVZ40DSb5575h7pAgq3p0qwv85D3qk /EED3qUiYput97j0Tee6MYnaVqWZSwrgWfoUwfKcbdNrJwpnaaMfPKzw4RqKa8WglN1wJj ig6X3+1nLJgFerb3DHfJU7Fg3T06zlfkv/DHh62ursMP6F2jXp7v3cz1Ybupil6HS8+Twv WPAc4MWZPD4G89iiClKQPLSgz5jbuchqZVAZJGYEir0HlSQLrTvtFQ30UkdZWR4CTDoiY1 UchvfRctCflr2CdZAaVHMCSr+0pSPuN2TJz0FX3On5q+ah8unRJkTFKTI5ZxKQ== 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 4PH3m607GWzWTD; Wed, 15 Feb 2023 16:43:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31FGh1AY002029; Wed, 15 Feb 2023 16:43:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31FGh1Ww002028; Wed, 15 Feb 2023 16:43:01 GMT (envelope-from git) Date: Wed, 15 Feb 2023 16:43:01 GMT Message-Id: <202302151643.31FGh1Ww002028@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 1f7d3b4c8f20 - stable/13 - Boolify should_yield() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 1f7d3b4c8f2011d78468b17406045812349b8538 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=1f7d3b4c8f2011d78468b17406045812349b8538 commit 1f7d3b4c8f2011d78468b17406045812349b8538 Author: Mitchell Horne AuthorDate: 2023-02-09 15:35:11 +0000 Commit: Mitchell Horne CommitDate: 2023-02-15 16:41:11 +0000 Boolify should_yield() Do this ahead of adding a man page that describes the function. No functional change. Reviewed by: kib, markj MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38181 (cherry picked from commit d570418bd8918980e578ff78a229593766b832bb) --- sys/kern/kern_synch.c | 2 +- sys/sys/proc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 5abc38d64296..b3570321806a 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -641,7 +641,7 @@ synch_setup(void *dummy) loadav(NULL); } -int +bool should_yield(void) { diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 452ffe413327..e3806a86c2a2 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1148,7 +1148,7 @@ void sess_hold(struct session *); void sess_release(struct session *); int setrunnable(struct thread *, int); void setsugid(struct proc *p); -int should_yield(void); +bool should_yield(void); int sigonstack(size_t sp); void stopevent(struct proc *, u_int, u_int); struct thread *tdfind(lwpid_t, pid_t);