summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-11-30 22:18:14 +0000
committerjeff <jeff@FreeBSD.org>2003-11-30 22:18:14 +0000
commitd26b674d3960781307bf7c45b51f937134aadb68 (patch)
tree4c4b4eea395f09ef4401ed26375c5a0612ac18f4 /sys/vm
parente35dcab926fd190efecffaa0c03ff365770b53cc (diff)
downloadFreeBSD-src-d26b674d3960781307bf7c45b51f937134aadb68.zip
FreeBSD-src-d26b674d3960781307bf7c45b51f937134aadb68.tar.gz
- Unbreak UP. mp_maxid is not defined on uni-processor machines, although
I believe it and the other MP variables should be. For now, just define it here and wait for jhb to clean it up later. Approved by: re (rwatson)
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/uma_core.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 0d70ed2..4aa5576 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -127,6 +127,14 @@ static int uma_boot_free = 0;
static int booted = 0;
/*
+ * Rather than #ifdef SMP all over, just give us a bogus definition for
+ * this on UP.
+ */
+#ifndef SMP
+static int mp_maxid = 1;
+#endif
+
+/*
* This is the handle used to schedule events that need to happen
* outside of the allocation fast path.
*/
OpenPOWER on IntegriCloud