From nobody Thu Feb 09 16:02:41 2023 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 4PCM8L3MGYz3pkGM; Thu, 9 Feb 2023 16:02:42 +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 4PCM8L1KxYz4DMX; Thu, 9 Feb 2023 16:02:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675958562; 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=TVri+ie6eMH9Tss5MHVHJZiy/BObdwWjeUShVGiXWkg=; b=oO0kLjCw0M+w08LGDiRZ8pAMdm0BzV/YaCzeLyuVMeuTtLKoMYkLcLD7ISHGjk72bnSX4h 6ZFmZg5YiruARazbWOnb3GKqXJoTiA5zgWqkkF0Oi5Bfi7qcYocWMcNXKhL9+GA6K5fRzc SS53bZHdErADcFeaNKNdcwXoSn0l+yDy3OdAlxTHiYDpNVsOjVFsPQr/8N0Afvo0lblhq7 ScIew3lwHmY8Y3Wyf4LI5dt3ZaRbjN50y5BYtHEtCDhKkIkHsPh44aneY9OZc2SkFgBm9Y BYNZsahinefjvFsSRoKNwW9HS6fP4QTdXA5VPBe7NRWSAkOgpshCqpYNxHTOrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675958562; 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=TVri+ie6eMH9Tss5MHVHJZiy/BObdwWjeUShVGiXWkg=; b=ePK6nuAWOFVIGOPZ/PsSGClDjnICBuha0oqJCvzmkoqOjl0J8Vm3FbWJJGF6Qu1XwQw1SZ 6A5uVyLKLuu7kJjTMr58dWHd7/A7RrDGLLBeXFIXT3VO90ecRyl+9eOqLTuxGoj11+hIru bj/dH2t5ClAf+REbgCdWnl06uSb+Y2PiBju07Z8/uRF7JQhFgpVoM0zLxo9yfQivlFfZkW tagdelZol1KQyDN+bbkY8Btf/zLl92vOu0H5U9DvL5uRb3HH4GHUTE28Yra3LkcDTRGl7j itKXbViH3h0dmMpetzfYLwIGd1Rte/pCVvQee05B0BgYVL3LURQjnTq4GTuj7g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675958562; a=rsa-sha256; cv=none; b=X63HXU6gPf4IeEzI+Nb0NrnWuVNPHFGjLjRlYgxW+0g7stneUCSy02ncZGLar6to1l9yj5 GM7GetCqiu2Bs4nTdNtZy4Go4qS/Ttg/2fR3V2HSUWBqE9IY+DvYiTwB1vNnm9Hn6ZhRfy cX4fE0o1bqookoChDg7r+RZ/KTpsZ5DLbsBUQaRVJ9koywivaw8WEvQpX7A7tpyZKduUmI 3XtA2yt6xtJLt7U3vFcD/fmRGL7kTwhFi4ng6eBtFzTh7laP9MTU63XOVTxlQGEqBIJm3p O/a70TSi7/icN8Yfy1y18mTx09a4g04XxeTybrGxqyHdCBdklRkchMxra7xN1w== 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 4PCM8L0QYDzjN8; Thu, 9 Feb 2023 16:02:42 +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 319G2gOk094641; Thu, 9 Feb 2023 16:02:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 319G2f4V094640; Thu, 9 Feb 2023 16:02:41 GMT (envelope-from git) Date: Thu, 9 Feb 2023 16:02:41 GMT Message-Id: <202302091602.319G2f4V094640@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: d570418bd891 - main - Boolify should_yield() 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: d570418bd8918980e578ff78a229593766b832bb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=d570418bd8918980e578ff78a229593766b832bb commit d570418bd8918980e578ff78a229593766b832bb Author: Mitchell Horne AuthorDate: 2023-02-09 15:35:11 +0000 Commit: Mitchell Horne CommitDate: 2023-02-09 15:58:06 +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 --- 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 261675da6ce9..7d0cb6178fc3 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -658,7 +658,7 @@ synch_setup(void *dummy __unused) loadav(NULL); } -int +bool should_yield(void) { diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 7ba7dbaff666..d031c2a73ce6 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1217,7 +1217,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);