- The kse may be null in sched_pctcpu().
Reported by: kris
This commit is contained in:
parent
fcda5c4f74
commit
7a27809dea
@ -723,5 +723,11 @@ sched_sizeof_thread(void)
|
||||
fixpt_t
|
||||
sched_pctcpu(struct thread *td)
|
||||
{
|
||||
return (td->td_kse->ke_pctcpu);
|
||||
struct kse *ke;
|
||||
|
||||
ke = td->td_kse;
|
||||
if (ke)
|
||||
return (ke->ke_pctcpu);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user