summaryrefslogtreecommitdiffstats
path: root/lib/libmemstat/memstat_uma.c
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_uma.c
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_uma.c')
-rw-r--r--lib/libmemstat/memstat_uma.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libmemstat/memstat_uma.c b/lib/libmemstat/memstat_uma.c
index 3020937..8e2c4e8 100644
--- a/lib/libmemstat/memstat_uma.c
+++ b/lib/libmemstat/memstat_uma.c
@@ -27,7 +27,6 @@
*/
#include <sys/param.h>
-#include <sys/cpuset.h>
#include <sys/sysctl.h>
#define LIBMEMSTAT /* Cause vm_page.h not to include opt_vmpage.h */
@@ -106,7 +105,7 @@ retry:
return (-1);
}
- if (maxcpus > MAXCPU) {
+ if (maxcpus > MEMSTAT_MAXCPU) {
list->mtl_error = MEMSTAT_ERROR_TOOMANYCPUS;
return (-1);
}
@@ -170,7 +169,7 @@ retry:
return (-1);
}
- if (ushp->ush_maxcpus > MAXCPU) {
+ if (ushp->ush_maxcpus > MEMSTAT_MAXCPU) {
list->mtl_error = MEMSTAT_ERROR_TOOMANYCPUS;
free(buffer);
return (-1);
OpenPOWER on IntegriCloud