- 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
0d1840b185
commit
d191470e5b
@ -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