git: d570418bd891 - main - Boolify should_yield()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Feb 2023 16:02:41 UTC
The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=d570418bd8918980e578ff78a229593766b832bb commit d570418bd8918980e578ff78a229593766b832bb Author: Mitchell Horne <mhorne@FreeBSD.org> AuthorDate: 2023-02-09 15:35:11 +0000 Commit: Mitchell Horne <mhorne@FreeBSD.org> 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);