diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-02-11 19:20:56 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-02-11 19:20:56 +0000 |
commit | 2c7a66af359c2c6be9d400d337efb69176831310 (patch) | |
tree | 2dfbf109d1ca55e804b55a31e7251e446b714641 | |
parent | f2e35917b92b0b836e80ed2b2e95664b7e8aaa0f (diff) | |
download | FreeBSD-src-2c7a66af359c2c6be9d400d337efb69176831310.zip FreeBSD-src-2c7a66af359c2c6be9d400d337efb69176831310.tar.gz |
Skip per-cpu caches associated with absent CPUs when generating a
memory statistics record stream via sysctl.
MFC after: 3 days
-rw-r--r-- | sys/vm/uma_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 9cba214..3268a1c 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -3012,6 +3012,8 @@ restart: bzero(&ups, sizeof(ups)); if (kz->uk_flags & UMA_ZFLAG_INTERNAL) goto skip; + if (CPU_ABSENT(i)) + goto skip; cache = &z->uz_cpu[i]; if (cache->uc_allocbucket != NULL) ups.ups_cache_free += |