diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-07-14 20:13:10 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-07-14 20:13:10 +0000 |
commit | fea89a2804ad89f5342268a8546a3f9b515b5e6c (patch) | |
tree | 7b482a3fb07b1f021874687523bb23ec5732b037 /sys/sys | |
parent | a985fad6e054cd66331956a8dbb20506c55189e5 (diff) | |
download | src-fea89a2804ad89f5342268a8546a3f9b515b5e6c.tar.gz src-fea89a2804ad89f5342268a8546a3f9b515b5e6c.zip |
Add sched_ithread_prio to set the base priority of an interrupt thread.
Use it instead of sched_prio when setting the priority of an interrupt
thread.
Reviewed by: kib, markj
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D35642
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/proc.h | 1 | ||||
-rw-r--r-- | sys/sys/sched.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 5521f8321e2b..bc2d90355b82 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -257,6 +257,7 @@ struct thread { #define td_siglist td_sigqueue.sq_signals u_char td_lend_user_pri; /* (t) Lend user pri. */ u_char td_allocdomain; /* (b) NUMA domain backing this struct thread. */ + u_char td_base_ithread_pri; /* (t) Base ithread pri */ struct kmsan_td *td_kmsan; /* (k) KMSAN state */ /* Cleared during fork1() */ diff --git a/sys/sys/sched.h b/sys/sys/sched.h index a9598767e4cb..e0556d29f0db 100644 --- a/sys/sys/sched.h +++ b/sys/sys/sched.h @@ -95,6 +95,7 @@ void sched_ap_entry(void); void sched_exit_thread(struct thread *td, struct thread *child); u_int sched_estcpu(struct thread *td); void sched_fork_thread(struct thread *td, struct thread *child); +void sched_ithread_prio(struct thread *td, u_char prio); void sched_lend_prio(struct thread *td, u_char prio); void sched_lend_user_prio(struct thread *td, u_char pri); void sched_lend_user_prio_cond(struct thread *td, u_char pri); |