system_info.cpustates isn't sparse, so a bitmask of available CPU states
is redundant (I think it's a leftover from an older implementation).
This commit is contained in:
parent
3aaa083285
commit
d3bf3b9a7a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178116
@ -44,7 +44,6 @@ struct system_info
|
||||
int *memory;
|
||||
int *swap;
|
||||
struct timeval boottime;
|
||||
unsigned long cpumask; /* bitfield of cpu states represented */
|
||||
int ncpus;
|
||||
};
|
||||
|
||||
|
@ -482,11 +482,9 @@ get_system_info(struct system_info *si)
|
||||
/* set arrays and strings */
|
||||
if (pcpu_stats) {
|
||||
si->cpustates = pcpu_cpu_states;
|
||||
si->cpumask = cpumask;
|
||||
si->ncpus = ncpus;
|
||||
} else {
|
||||
si->cpustates = cpu_states;
|
||||
si->cpumask = 1;
|
||||
si->ncpus = 1;
|
||||
}
|
||||
si->memory = memory_stats;
|
||||
|
Loading…
Reference in New Issue
Block a user