]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: arm64: Repack struct kvm_pmu to reduce size
authorFuad Tabba <tabba@google.com>
Tue, 10 May 2022 09:57:08 +0000 (09:57 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 15 May 2022 10:24:17 +0000 (11:24 +0100)
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
include/kvm/arm_pmu.h

index 20193416d2141ef7e542a9ab381c575b6c17fb4e..eaa8290b116f98a1d5f150b74a7574337e5c45b7 100644 (file)
@@ -21,12 +21,12 @@ struct kvm_pmc {
 };
 
 struct kvm_pmu {
-       int irq_num;
+       struct irq_work overflow_work;
        struct kvm_pmc pmc[ARMV8_PMU_MAX_COUNTERS];
        DECLARE_BITMAP(chained, ARMV8_PMU_MAX_COUNTER_PAIRS);
+       int irq_num;
        bool created;
        bool irq_level;
-       struct irq_work overflow_work;
 };
 
 struct arm_pmu_entry {