summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2008-04-11 11:39:26 +0000
committerru <ru@FreeBSD.org>2008-04-11 11:39:26 +0000
commit1d29dab18251001b511e0d4b77b92d4283f6c0e5 (patch)
treee0c56dd650490ec63838405e633ac66ccea00351
parente8bab4ec9bfbdcd70ae3a9eabbc9e47efee5658f (diff)
downloadFreeBSD-src-1d29dab18251001b511e0d4b77b92d4283f6c0e5.zip
FreeBSD-src-1d29dab18251001b511e0d4b77b92d4283f6c0e5.tar.gz
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).
-rw-r--r--contrib/top/machine.h1
-rw-r--r--usr.bin/top/machine.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/contrib/top/machine.h b/contrib/top/machine.h
index 4584650..a09424c 100644
--- a/contrib/top/machine.h
+++ b/contrib/top/machine.h
@@ -44,7 +44,6 @@ struct system_info
int *memory;
int *swap;
struct timeval boottime;
- unsigned long cpumask; /* bitfield of cpu states represented */
int ncpus;
};
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 632d53d..fa2eb68 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -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;
OpenPOWER on IntegriCloud