From 1d29dab18251001b511e0d4b77b92d4283f6c0e5 Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 11 Apr 2008 11:39:26 +0000 Subject: 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). --- usr.bin/top/machine.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'usr.bin/top') 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; -- cgit v1.1