diff options
author | Tony Lindgren <tony@atomide.com> | 2009-09-02 18:23:05 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-09-02 18:23:05 -0400 |
commit | 5567fa1f543dde3c42f8e52bf4f7005135b24896 (patch) | |
tree | f4e2815758d5dd15f75a6c1523c1abc50966cdcb /arch/arm/plat-omap/include | |
parent | d3d381c6365ef5b06c4184a3fe047cf027533970 (diff) | |
parent | 68d4778c701b7e22ddfd64e3afb6628c92718ad2 (diff) |
Merge branch 'pm-upstream/debug' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm into for-next
Diffstat (limited to 'arch/arm/plat-omap/include')
-rw-r--r-- | arch/arm/plat-omap/include/mach/clockdomain.h | 3 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/mach/powerdomain.h | 15 |
2 files changed, 16 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/include/mach/clockdomain.h b/arch/arm/plat-omap/include/mach/clockdomain.h index b9d0dd2da89b..99ebd886f134 100644 --- a/arch/arm/plat-omap/include/mach/clockdomain.h +++ b/arch/arm/plat-omap/include/mach/clockdomain.h | |||
@@ -95,7 +95,8 @@ int clkdm_register(struct clockdomain *clkdm); | |||
95 | int clkdm_unregister(struct clockdomain *clkdm); | 95 | int clkdm_unregister(struct clockdomain *clkdm); |
96 | struct clockdomain *clkdm_lookup(const char *name); | 96 | struct clockdomain *clkdm_lookup(const char *name); |
97 | 97 | ||
98 | int clkdm_for_each(int (*fn)(struct clockdomain *clkdm)); | 98 | int clkdm_for_each(int (*fn)(struct clockdomain *clkdm, void *user), |
99 | void *user); | ||
99 | struct powerdomain *clkdm_get_pwrdm(struct clockdomain *clkdm); | 100 | struct powerdomain *clkdm_get_pwrdm(struct clockdomain *clkdm); |
100 | 101 | ||
101 | void omap2_clkdm_allow_idle(struct clockdomain *clkdm); | 102 | void omap2_clkdm_allow_idle(struct clockdomain *clkdm); |
diff --git a/arch/arm/plat-omap/include/mach/powerdomain.h b/arch/arm/plat-omap/include/mach/powerdomain.h index 69c9e675d8ee..6271d8556a40 100644 --- a/arch/arm/plat-omap/include/mach/powerdomain.h +++ b/arch/arm/plat-omap/include/mach/powerdomain.h | |||
@@ -117,6 +117,13 @@ struct powerdomain { | |||
117 | 117 | ||
118 | struct list_head node; | 118 | struct list_head node; |
119 | 119 | ||
120 | int state; | ||
121 | unsigned state_counter[4]; | ||
122 | |||
123 | #ifdef CONFIG_PM_DEBUG | ||
124 | s64 timer; | ||
125 | s64 state_timer[4]; | ||
126 | #endif | ||
120 | }; | 127 | }; |
121 | 128 | ||
122 | 129 | ||
@@ -126,7 +133,8 @@ int pwrdm_register(struct powerdomain *pwrdm); | |||
126 | int pwrdm_unregister(struct powerdomain *pwrdm); | 133 | int pwrdm_unregister(struct powerdomain *pwrdm); |
127 | struct powerdomain *pwrdm_lookup(const char *name); | 134 | struct powerdomain *pwrdm_lookup(const char *name); |
128 | 135 | ||
129 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm)); | 136 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm, void *user), |
137 | void *user); | ||
130 | 138 | ||
131 | int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); | 139 | int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); |
132 | int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); | 140 | int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); |
@@ -164,4 +172,9 @@ bool pwrdm_has_hdwr_sar(struct powerdomain *pwrdm); | |||
164 | 172 | ||
165 | int pwrdm_wait_transition(struct powerdomain *pwrdm); | 173 | int pwrdm_wait_transition(struct powerdomain *pwrdm); |
166 | 174 | ||
175 | int pwrdm_state_switch(struct powerdomain *pwrdm); | ||
176 | int pwrdm_clkdm_state_switch(struct clockdomain *clkdm); | ||
177 | int pwrdm_pre_transition(void); | ||
178 | int pwrdm_post_transition(void); | ||
179 | |||
167 | #endif | 180 | #endif |