summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-12-08 13:16:22 +0000
committerrwatson <rwatson@FreeBSD.org>2005-12-08 13:16:22 +0000
commitf2a96cd9c9ca65256572ef81828b013aff9692a4 (patch)
treea3cca27567ce958bba070235cc62351057d6b8c2 /sys/dev/mii
parent143b5d29e0d9125ec7b70a1abe48aebb3989b192 (diff)
downloadFreeBSD-src-f2a96cd9c9ca65256572ef81828b013aff9692a4.zip
FreeBSD-src-f2a96cd9c9ca65256572ef81828b013aff9692a4.tar.gz
Teach umastat about the variable-length array of per-CPU caches at the end
of struct uma_zone. It is declared as an array of size [1], but then sized at run-time by UMA to include room for mp_maxid+1 CPUs. We have to copy the uma_zone first at the declared structure size, then check to make sure it's not an internal zone before copying the larger size (UMA internal zones don't use per-CPU caches). This fixes umastat for SMP.
Diffstat (limited to 'sys/dev/mii')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud