mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
- The kse may be null in sched_pctcpu().
Reported by: kris
This commit is contained in:
parent
0e0f626628
commit
55f2099a70
1 changed files with 7 additions and 1 deletions
|
|
@ -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 a new issue