summaryrefslogtreecommitdiffstats
path: root/lib/libmemstat/memstat_internal.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-05-08 14:29:25 +0000
committerattilio <attilio@FreeBSD.org>2011-05-08 14:29:25 +0000
commit10ea4d196652fe0eb9ae279f5d068bf297eae8c6 (patch)
tree5f1e533b90620752ba924fe1bc6a0b9a9e6eef13 /lib/libmemstat/memstat_internal.h
parentcf9c204572b33c27e35e696f54133ec1848e9d02 (diff)
downloadFreeBSD-src-10ea4d196652fe0eb9ae279f5d068bf297eae8c6.zip
FreeBSD-src-10ea4d196652fe0eb9ae279f5d068bf297eae8c6.tar.gz
Revert MAXCPU introduction. In userland it is always 1.
Noted by: marcel
Diffstat (limited to 'lib/libmemstat/memstat_internal.h')
-rw-r--r--lib/libmemstat/memstat_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libmemstat/memstat_internal.h b/lib/libmemstat/memstat_internal.h
index 8881e58..b7fdd71 100644
--- a/lib/libmemstat/memstat_internal.h
+++ b/lib/libmemstat/memstat_internal.h
@@ -100,11 +100,11 @@ struct memory_type {
uint64_t mtp_sizemask; /* Per-CPU mt_sizemask. */
void *mtp_caller_pointer[MEMSTAT_MAXCALLER];
uint64_t mtp_caller_uint64[MEMSTAT_MAXCALLER];
- } mt_percpu_alloc[MAXCPU];
+ } mt_percpu_alloc[MEMSTAT_MAXCPU];
struct {
uint64_t mtp_free; /* Per-CPU cache free items. */
- } mt_percpu_cache[MAXCPU];
+ } mt_percpu_cache[MEMSTAT_MAXCPU];
LIST_ENTRY(memory_type) mt_list; /* List of types. */
};
OpenPOWER on IntegriCloud