Skip to content

Commit

Permalink
OMAP powerdomain: rearrange struct powerdomain to save some memory
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Walmsley authored and paul committed Dec 12, 2009
1 parent 2354eb5 commit 155a22e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/arm/plat-omap/include/plat/powerdomain.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 155a22e

Please sign in to comment.