When suspending a thread, update the appropriate (sic) statistic.
This commit is contained in:
parent
50bdfea7d1
commit
83080a2d6a
@ -749,6 +749,7 @@ thread_suspend_check(int return_instead)
|
||||
td->td_state = TDS_SUSPENDED;
|
||||
TAILQ_INSERT_TAIL(&p->p_suspended, td, td_runq);
|
||||
PROC_UNLOCK(p);
|
||||
p->p_stats->p_ru.ru_nivcsw++;
|
||||
mi_switch();
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
PROC_LOCK(p);
|
||||
|
@ -749,6 +749,7 @@ thread_suspend_check(int return_instead)
|
||||
td->td_state = TDS_SUSPENDED;
|
||||
TAILQ_INSERT_TAIL(&p->p_suspended, td, td_runq);
|
||||
PROC_UNLOCK(p);
|
||||
p->p_stats->p_ru.ru_nivcsw++;
|
||||
mi_switch();
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
PROC_LOCK(p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user