aboutsummaryrefslogtreecommitdiff
path: root/sys/vm
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-07-16 11:03:06 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-07-16 11:03:06 +0000
commitab3a57c04d8af74ebf7095378eb1888e42e38a5c (patch)
tree351934160f1c337d6521e02b2e05aecc4ad8d28d /sys/vm
parent08ecce74bc66514e44ec704a0e1cae97afbc3ce2 (diff)
Notes
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/uma_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index a1163213ceadd..77da622a15c4a 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -2933,7 +2933,7 @@ restart:
mtx_unlock(&uma_mtx);
buflen = sizeof(ush) + count * (sizeof(uth) + sizeof(ups) *
- MAXCPU) + 1;
+ (mp_maxid + 1)) + 1;
buffer = malloc(buflen, M_TEMP, M_WAITOK | M_ZERO);
mtx_lock(&uma_mtx);
@@ -2955,7 +2955,7 @@ restart:
*/
bzero(&ush, sizeof(ush));
ush.ush_version = UMA_STREAM_VERSION;
- ush.ush_maxcpus = MAXCPU;
+ ush.ush_maxcpus = (mp_maxid + 1);
ush.ush_count = count;
if (sbuf_bcat(&sbuf, &ush, sizeof(ush)) < 0) {
mtx_unlock(&uma_mtx);
@@ -2999,7 +2999,7 @@ restart:
* accept the possible race associated with bucket
* exchange during monitoring.
*/
- for (i = 0; i < MAXCPU; i++) {
+ for (i = 0; i < (mp_maxid + 1); i++) {
bzero(&ups, sizeof(ups));
if (kz->uk_flags & UMA_ZFLAG_INTERNAL)
goto skip;