mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Remove unused variables.
This commit is contained in:
parent
4784a27247
commit
4220337804
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215240
@ -1675,23 +1675,19 @@ sched_prio(struct thread *td, u_char prio)
|
||||
void
|
||||
sched_user_prio(struct thread *td, u_char prio)
|
||||
{
|
||||
u_char oldprio;
|
||||
|
||||
td->td_base_user_pri = prio;
|
||||
if (td->td_flags & TDF_UBORROWING && td->td_user_pri <= prio)
|
||||
return;
|
||||
oldprio = td->td_user_pri;
|
||||
td->td_user_pri = prio;
|
||||
}
|
||||
|
||||
void
|
||||
sched_lend_user_prio(struct thread *td, u_char prio)
|
||||
{
|
||||
u_char oldprio;
|
||||
|
||||
THREAD_LOCK_ASSERT(td, MA_OWNED);
|
||||
td->td_flags |= TDF_UBORROWING;
|
||||
oldprio = td->td_user_pri;
|
||||
td->td_user_pri = prio;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user