aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/cpuidle44xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/cpuidle44xx.c')
-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)) {