diff options
Diffstat (limited to 'proc')
-rw-r--r-- | proc/info.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/proc/info.c b/proc/info.c index f2e60114..2ea2a114 100644 --- a/proc/info.c +++ b/proc/info.c @@ -713,6 +713,14 @@ S_proc_getprocinfo (struct proc *callerp, *flags &= ~PI_FETCH_THREAD_SCHED; err = 0; } + +#ifdef HAVE_STRUCT_THREAD_SCHED_INFO_LAST_PROCESSOR + /* If the structure read doesn't include last_processor field, assume + CPU 0. */ + if (thcount < 8) + thds[i]->last_processor = 0; +#endif + } /* Note that there are thread wait entries only for those threads |