diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-01-22 05:22:15 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-01-29 18:11:54 +0000 |
| commit | 57bb132e98b0736d15881eb80aba6c2c5dd8ac28 (patch) | |
| tree | 4ab8c9f4ccfc8ffbef5019135c95c13b814fe502 | |
| parent | 23266bc9928f16fef292f6ab31d7cd8b7ad2ccdb (diff) | |
maybe_preempt(): make static in sched_4bsd.c
Reviewed by: olce
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D54831
| -rw-r--r-- | sys/kern/sched_4bsd.c | 2 | ||||
| -rw-r--r-- | sys/sys/proc.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index 504f9a2338ef..e40b5c6c6b7f 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -322,7 +322,7 @@ maybe_resched(struct thread *td) * determines if the new thread should preempt the current thread. If so, * it sets td_owepreempt to request a preemption. */ -int +static int maybe_preempt(struct thread *td) { #ifdef PREEMPTION diff --git a/sys/sys/proc.h b/sys/sys/proc.h index b27b67999e8b..0c9658fff725 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1173,7 +1173,6 @@ void kern_proc_vmmap_resident(struct vm_map *map, struct vm_map_entry *entry, void kern_yield(int); void killjobc(void); int leavepgrp(struct proc *p); -int maybe_preempt(struct thread *td); void maybe_yield(void); void mi_switch(int flags); int p_candebug(struct thread *td, struct proc *p); |
