diff options
author | ru <ru@FreeBSD.org> | 2008-04-11 11:39:26 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2008-04-11 11:39:26 +0000 |
commit | 1d29dab18251001b511e0d4b77b92d4283f6c0e5 (patch) | |
tree | e0c56dd650490ec63838405e633ac66ccea00351 | |
parent | e8bab4ec9bfbdcd70ae3a9eabbc9e47efee5658f (diff) | |
download | FreeBSD-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.h | 1 | ||||
-rw-r--r-- | usr.bin/top/machine.c | 2 |
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; |