summaryrefslogtreecommitdiffstats
path: root/sys/arm
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/arm
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/arm')
-rw-r--r--sys/arm/include/pcpu.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arm/include/pcpu.h b/sys/arm/include/pcpu.h
index 43ffb44..cd5006c 100644
--- a/sys/arm/include/pcpu.h
+++ b/sys/arm/include/pcpu.h
@@ -48,12 +48,13 @@ struct vmspace;
unsigned int pc_vfpmvfr0; \
unsigned int pc_vfpmvfr1; \
struct thread *pc_vfpcthread; \
- struct pmap *pc_curpmap;
+ struct pmap *pc_curpmap; \
+ char __pad[133]
#else
-#define PCPU_MD_FIELDS
+#define PCPU_MD_FIELDS \
+ char __pad[157]
#endif
-
#ifdef _KERNEL
struct pcb;
OpenPOWER on IntegriCloud