summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-04-08 19:19:10 +0000
committerglebius <glebius@FreeBSD.org>2013-04-08 19:19:10 +0000
commit8c6eba117e357de0d074eaba6b730cc2261cd9e0 (patch)
tree417e1a1bd53ca195c061caab891a3d8d940beb2b /sys/ia64
parent7f9db020a246190e72c9b9656997403221c48a3a (diff)
downloadFreeBSD-src-8c6eba117e357de0d074eaba6b730cc2261cd9e0.zip
FreeBSD-src-8c6eba117e357de0d074eaba6b730cc2261cd9e0.tar.gz
Merge from projects/counters:
Pad struct pcpu so that its size is denominator of PAGE_SIZE. This is done to reduce memory waste in UMA_PCPU_ZONE zones. Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/include/pcpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ia64/include/pcpu.h b/sys/ia64/include/pcpu.h
index 5ad61ba..0f2a6f3 100644
--- a/sys/ia64/include/pcpu.h
+++ b/sys/ia64/include/pcpu.h
@@ -64,7 +64,8 @@ struct pcpu_md {
#define PCPU_MD_FIELDS \
uint32_t pc_acpi_id; /* ACPI CPU id. */ \
- struct pcpu_md pc_md /* MD fields. */
+ struct pcpu_md pc_md; /* MD fields. */ \
+ char __pad[1265]
#ifdef _KERNEL
OpenPOWER on IntegriCloud