- If a thread is not bound to a kse return 0 from sched_pctcpu().
Reported by: pawel.worach@nordea.com
This commit is contained in:
parent
b361bd542c
commit
484288de56
@ -1311,6 +1311,8 @@ sched_pctcpu(struct thread *td)
|
||||
|
||||
pctcpu = 0;
|
||||
ke = td->td_kse;
|
||||
if (ke == NULL)
|
||||
return (0);
|
||||
|
||||
mtx_lock_spin(&sched_lock);
|
||||
if (ke->ke_ticks) {
|
||||
|
Loading…
Reference in New Issue
Block a user