diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-08-25 06:12:53 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-08-25 06:12:53 +0000 |
commit | 8e3f035b3fe6e8293586d7be12b71498351440c8 (patch) | |
tree | 244bf38809201fa8c6b1cc0c207cf963c19902ab /sys/sys/sched.h | |
parent | 73837f2df49445b9f599115029f3e2986e48e6de (diff) | |
download | FreeBSD-src-8e3f035b3fe6e8293586d7be12b71498351440c8.zip FreeBSD-src-8e3f035b3fe6e8293586d7be12b71498351440c8.tar.gz |
Add user priority loaning code to support priority propagation for
1:1 threading's POSIX priority mutexes, the code is no-op unless
priority-aware umtx code is committed.
Diffstat (limited to 'sys/sys/sched.h')
-rw-r--r-- | sys/sys/sched.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sys/sched.h b/sys/sys/sched.h index b782c1f..ccb335d 100644 --- a/sys/sys/sched.h +++ b/sys/sys/sched.h @@ -63,12 +63,15 @@ void sched_nice(struct proc *p, int nice); */ void sched_exit_thread(struct thread *td, struct thread *child); void sched_fork_thread(struct thread *td, struct thread *child); +void sched_lend_prio(struct thread *td, u_char prio); +void sched_lend_user_prio(struct thread *td, u_char pri); fixpt_t sched_pctcpu(struct thread *td); void sched_prio(struct thread *td, u_char prio); -void sched_lend_prio(struct thread *td, u_char prio); void sched_sleep(struct thread *td); void sched_switch(struct thread *td, struct thread *newtd, int flags); void sched_unlend_prio(struct thread *td, u_char prio); +void sched_unlend_user_prio(struct thread *td, u_char pri); +void sched_user_prio(struct ksegrp *kg, u_char prio); void sched_userret(struct thread *td); void sched_wakeup(struct thread *td); |