Skip to content

Commit e987a4c

Browse files
Fuad TabbaMarc Zyngier
authored andcommitted
KVM: arm64: Repack struct kvm_pmu to reduce size
struct kvm_pmu has 2 holes using 10 bytes. This is instantiated in all vcpus, so it adds up. Repack the structures to remove the holes. No functional change intended. Reviewed-by: Oliver Upton <oupton@google.com> Signed-off-by: Fuad Tabba <tabba@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220510095710.148178-3-tabba@google.com
1 parent 3cb8a09 commit e987a4c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/kvm/arm_pmu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ struct kvm_pmc {
2121
};
2222

2323
struct kvm_pmu {
24-
int irq_num;
24+
struct irq_work overflow_work;
2525
struct kvm_pmc pmc[ARMV8_PMU_MAX_COUNTERS];
2626
DECLARE_BITMAP(chained, ARMV8_PMU_MAX_COUNTER_PAIRS);
27+
int irq_num;
2728
bool created;
2829
bool irq_level;
29-
struct irq_work overflow_work;
3030
};
3131

3232
struct arm_pmu_entry {

0 commit comments

Comments
 (0)