13 #include <linux/sched.h>
16 #include <linux/export.h>
19 #include <asm/proc-fns.h>
132 cpu_done[dev->
cpu] =
true;
150 if (omap4_mpuss_read_prev_context_state())
157 cpu_done[dev->
cpu] =
false;
167 .name =
"omap4_idle",
169 .en_core_tk_irqen = 1,
173 .exit_latency = 2 + 2,
174 .target_residency = 5,
176 .enter = omap4_enter_idle_simple,
182 .exit_latency = 328 + 440,
183 .target_residency = 960,
185 .enter = omap4_enter_idle_coupled,
187 .desc =
"MPUSS CSWR",
191 .exit_latency = 460 + 518,
192 .target_residency = 1100,
194 .enter = omap4_enter_idle_coupled,
196 .desc =
"MPUSS OSWR",
200 .safe_state_index = 0,
207 static void omap_setup_broadcast_timer(
void *
arg)
222 unsigned int cpu_id = 0;
227 if ((!mpu_pd) || (!cpu_pd[0]) || (!cpu_pd[1]))
232 if (!cpu_clkdm[0] || !cpu_clkdm[1])
239 dev = &
per_cpu(omap4_idle_dev, cpu_id);
241 #ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
247 pr_err(
"%s: CPUidle register failed\n", __func__);