aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2012-04-24 10:05:28 -0400
committerKevin Hilman <khilman@ti.com>2012-05-03 14:00:57 -0400
commit102c25516700f540b2a97a71f9f44c385267f5ca (patch)
tree822906ad54b0551b14dde5acd923642104874d73
parent7aeb658d5b65981d7747c10fd5e2c0e3b83bd139 (diff)
ARM: OMAP4: cpuidle - remove omap4_idle_data initialization at boot time
We initialized it at compile time, no need to do that at boot time. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Jean Pihet <j-pihet@ti.com> Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Tested-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
-rw-r--r--arch/arm/mach-omap2/cpuidle44xx.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/arm/mach-omap2/cpuidle44xx.c b/arch/arm/mach-omap2/cpuidle44xx.c
index f1410f1db1f5..be1617ca84bd 100644
--- a/arch/arm/mach-omap2/cpuidle44xx.c
+++ b/arch/arm/mach-omap2/cpuidle44xx.c
@@ -170,14 +170,6 @@ struct cpuidle_driver omap4_idle_driver = {
170 .safe_state_index = 0, 170 .safe_state_index = 0,
171}; 171};
172 172
173static inline struct omap4_idle_statedata *_fill_cstate_usage(
174 struct cpuidle_device *dev,
175 int idx)
176{
177 struct omap4_idle_statedata *cx = &omap4_idle_data[idx];
178 return cx;
179}
180
181/** 173/**
182 * omap4_idle_init - Init routine for OMAP4 idle 174 * omap4_idle_init - Init routine for OMAP4 idle
183 * 175 *
@@ -186,7 +178,6 @@ static inline struct omap4_idle_statedata *_fill_cstate_usage(
186 */ 178 */
187int __init omap4_idle_init(void) 179int __init omap4_idle_init(void)
188{ 180{
189 struct omap4_idle_statedata *cx;
190 struct cpuidle_device *dev; 181 struct cpuidle_device *dev;
191 unsigned int cpu_id = 0; 182 unsigned int cpu_id = 0;
192 183
@@ -199,21 +190,6 @@ int __init omap4_idle_init(void)
199 dev = &per_cpu(omap4_idle_dev, cpu_id); 190 dev = &per_cpu(omap4_idle_dev, cpu_id);
200 dev->cpu = cpu_id; 191 dev->cpu = cpu_id;
201 192
202 cx = _fill_cstate_usage(dev, 0);
203 cx->cpu_state = PWRDM_POWER_ON;
204 cx->mpu_state = PWRDM_POWER_ON;
205 cx->mpu_logic_state = PWRDM_POWER_RET;
206
207 cx = _fill_cstate_usage(dev, 1);
208 cx->cpu_state = PWRDM_POWER_OFF;
209 cx->mpu_state = PWRDM_POWER_RET;
210 cx->mpu_logic_state = PWRDM_POWER_RET;
211
212 cx = _fill_cstate_usage(dev, 2);
213 cx->cpu_state = PWRDM_POWER_OFF;
214 cx->mpu_state = PWRDM_POWER_RET;
215 cx->mpu_logic_state = PWRDM_POWER_OFF;
216
217 cpuidle_register_driver(&omap4_idle_driver); 193 cpuidle_register_driver(&omap4_idle_driver);
218 194
219 if (cpuidle_register_device(dev)) { 195 if (cpuidle_register_device(dev)) {