git: 1f7d3b4c8f20 - stable/13 - Boolify should_yield()

From: Mitchell Horne <mhorne_at_FreeBSD.org>
Date: Wed, 15 Feb 2023 16:43:01 UTC
The branch stable/13 has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=1f7d3b4c8f2011d78468b17406045812349b8538

commit 1f7d3b4c8f2011d78468b17406045812349b8538
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2023-02-09 15:35:11 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
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);