mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
2 changed files with 0 additions and 3 deletions
|
|
@ -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 a new issue