summaryrefslogtreecommitdiffstats
path: root/sys/amd64
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/amd64
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/amd64')
-rw-r--r--sys/amd64/include/pcpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/amd64/include/pcpu.h b/sys/amd64/include/pcpu.h
index 2188442..bb7d339 100644
--- a/sys/amd64/include/pcpu.h
+++ b/sys/amd64/include/pcpu.h
@@ -77,7 +77,9 @@
/* Pointer to the CPU TSS descriptor */ \
struct system_segment_descriptor *pc_tss; \
u_int pc_cmci_mask /* MCx banks for CMCI */ \
- PCPU_XEN_FIELDS
+ PCPU_XEN_FIELDS; \
+ char __pad[293] /* be divisor of PAGE_SIZE \
+ after cache alignment */
#ifdef _KERNEL
OpenPOWER on IntegriCloud