diff options
author | glebius <glebius@FreeBSD.org> | 2013-04-08 19:19:10 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-04-08 19:19:10 +0000 |
commit | 8c6eba117e357de0d074eaba6b730cc2261cd9e0 (patch) | |
tree | 417e1a1bd53ca195c061caab891a3d8d940beb2b /sys/i386 | |
parent | 7f9db020a246190e72c9b9656997403221c48a3a (diff) | |
download | FreeBSD-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/i386')
-rw-r--r-- | sys/i386/include/pcpu.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/i386/include/pcpu.h b/sys/i386/include/pcpu.h index aa1066d..3606d12 100644 --- a/sys/i386/include/pcpu.h +++ b/sys/i386/include/pcpu.h @@ -74,18 +74,22 @@ struct shadow_time_info { int pc_resched_irq; \ int pc_callfunc_irq; \ int pc_virq_to_irq[NR_VIRQS]; \ - int pc_ipi_to_irq[NR_IPIS] + int pc_ipi_to_irq[NR_IPIS]; \ + char __pad[77] #elif defined(XENHVM) #define PCPU_XEN_FIELDS \ ; \ unsigned int pc_last_processed_l1i; \ - unsigned int pc_last_processed_l2i + unsigned int pc_last_processed_l2i; \ + char __pad[229] #else /* !XEN && !XENHVM */ -#define PCPU_XEN_FIELDS +#define PCPU_XEN_FIELDS \ + ; \ + char __pad[237] #endif |