OMAP powerdomain: rearrange struct powerdomain to save some memory
authorPaul Walmsley <paul@pwsan.com>
Tue, 8 Dec 2009 23:33:13 +0000 (16:33 -0700)
committerpaul <paul@twilight.(none)>
Sat, 12 Dec 2009 00:00:41 +0000 (17:00 -0700)
This patch rearranges the order of structure members in struct powerdomain
to avoid wasting memory due to alignment restrictions.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/plat-omap/include/plat/powerdomain.h

index 5a80ddb..56bb1b9 100644 (file)
@@ -87,15 +87,15 @@ struct powerdomain {
        /* Used to represent the OMAP chip types containing this pwrdm */
        const struct omap_chip_id omap_chip;
 
-       /* Bit shift of this powerdomain's PM_WKDEP/CM_SLEEPDEP bit */
-       const u8 dep_bit;
-
        /* Powerdomains that can be told to wake this powerdomain up */
        struct pwrdm_dep *wkdep_srcs;
 
        /* Powerdomains that can be told to keep this pwrdm from inactivity */
        struct pwrdm_dep *sleepdep_srcs;
 
+       /* Bit shift of this powerdomain's PM_WKDEP/CM_SLEEPDEP bit */
+       const u8 dep_bit;
+
        /* Possible powerdomain power states */
        const u8 pwrsts;