diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-11-04 16:50:46 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-08 06:38:42 -0500 |
commit | ebb8dca2957f3bb79eea8eec0c7d1c8c3fa9a5be (patch) | |
tree | beb33acc221cb9b1af68ebc6db47b2313c40e927 /arch/arm/plat-omap | |
parent | eee5b19119458cd399ce4deaabea07c8d07159ae (diff) |
[ARM] omap: rearrange clock.h structure order
... to eliminate unnecessary padding. We have rather a lot of these
structures, so eliminating unnecessary padding results in a saving of
1488 bytes.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/mach/clock.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/plat-omap/include/mach/clock.h b/arch/arm/plat-omap/include/mach/clock.h index 547619f83568..6c24835e174d 100644 --- a/arch/arm/plat-omap/include/mach/clock.h +++ b/arch/arm/plat-omap/include/mach/clock.h | |||
@@ -25,8 +25,8 @@ struct clkops { | |||
25 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) | 25 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
26 | 26 | ||
27 | struct clksel_rate { | 27 | struct clksel_rate { |
28 | u8 div; | ||
29 | u32 val; | 28 | u32 val; |
29 | u8 div; | ||
30 | u8 flags; | 30 | u8 flags; |
31 | }; | 31 | }; |
32 | 32 | ||
@@ -39,23 +39,23 @@ struct dpll_data { | |||
39 | void __iomem *mult_div1_reg; | 39 | void __iomem *mult_div1_reg; |
40 | u32 mult_mask; | 40 | u32 mult_mask; |
41 | u32 div1_mask; | 41 | u32 div1_mask; |
42 | unsigned int rate_tolerance; | ||
43 | unsigned long last_rounded_rate; | ||
42 | u16 last_rounded_m; | 44 | u16 last_rounded_m; |
43 | u8 last_rounded_n; | 45 | u8 last_rounded_n; |
44 | unsigned long last_rounded_rate; | ||
45 | unsigned int rate_tolerance; | ||
46 | u16 max_multiplier; | ||
47 | u8 max_divider; | 46 | u8 max_divider; |
48 | u32 max_tolerance; | 47 | u32 max_tolerance; |
48 | u16 max_multiplier; | ||
49 | # if defined(CONFIG_ARCH_OMAP3) | 49 | # if defined(CONFIG_ARCH_OMAP3) |
50 | u8 modes; | 50 | u8 modes; |
51 | void __iomem *control_reg; | 51 | void __iomem *control_reg; |
52 | void __iomem *autoidle_reg; | ||
53 | void __iomem *idlest_reg; | ||
52 | u32 enable_mask; | 54 | u32 enable_mask; |
55 | u32 autoidle_mask; | ||
53 | u8 auto_recal_bit; | 56 | u8 auto_recal_bit; |
54 | u8 recal_en_bit; | 57 | u8 recal_en_bit; |
55 | u8 recal_st_bit; | 58 | u8 recal_st_bit; |
56 | void __iomem *autoidle_reg; | ||
57 | u32 autoidle_mask; | ||
58 | void __iomem *idlest_reg; | ||
59 | u8 idlest_bit; | 59 | u8 idlest_bit; |
60 | # endif | 60 | # endif |
61 | }; | 61 | }; |
@@ -71,12 +71,12 @@ struct clk { | |||
71 | unsigned long rate; | 71 | unsigned long rate; |
72 | __u32 flags; | 72 | __u32 flags; |
73 | void __iomem *enable_reg; | 73 | void __iomem *enable_reg; |
74 | __u8 enable_bit; | ||
75 | __s8 usecount; | ||
76 | void (*recalc)(struct clk *); | 74 | void (*recalc)(struct clk *); |
77 | int (*set_rate)(struct clk *, unsigned long); | 75 | int (*set_rate)(struct clk *, unsigned long); |
78 | long (*round_rate)(struct clk *, unsigned long); | 76 | long (*round_rate)(struct clk *, unsigned long); |
79 | void (*init)(struct clk *); | 77 | void (*init)(struct clk *); |
78 | __u8 enable_bit; | ||
79 | __s8 usecount; | ||
80 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) | 80 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
81 | u8 fixed_div; | 81 | u8 fixed_div; |
82 | void __iomem *clksel_reg; | 82 | void __iomem *clksel_reg; |