浏览代码

OMAP powerdomain: rearrange struct powerdomain to save some memory

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>
Paul Walmsley 15 年之前
父节点
当前提交
e0594b448a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      arch/arm/plat-omap/include/plat/powerdomain.h

+ 3 - 3
arch/arm/plat-omap/include/plat/powerdomain.h

@@ -73,12 +73,12 @@ struct powerdomain {
 	/* Powerdomain name */
 	/* Powerdomain name */
 	const char *name;
 	const char *name;
 
 
-	/* the address offset from CM_BASE/PRM_BASE */
-	const s16 prcm_offs;
-
 	/* Used to represent the OMAP chip types containing this pwrdm */
 	/* Used to represent the OMAP chip types containing this pwrdm */
 	const struct omap_chip_id omap_chip;
 	const struct omap_chip_id omap_chip;
 
 
+	/* the address offset from CM_BASE/PRM_BASE */
+	const s16 prcm_offs;
+
 	/* Possible powerdomain power states */
 	/* Possible powerdomain power states */
 	const u8 pwrsts;
 	const u8 pwrsts;