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:
Ruslan Ermilov 2008-04-11 11:39:26 +00:00
parent 3aaa083285
commit d3bf3b9a7a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178116
2 changed files with 0 additions and 3 deletions

View File

@ -44,7 +44,6 @@ struct system_info
int *memory;
int *swap;
struct timeval boottime;
unsigned long cpumask; /* bitfield of cpu states represented */
int ncpus;
};

View File

@ -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;