Logo Search packages:      
Sourcecode: linux version File versions

void arch_idle ( void   ) 

This function puts the CPU into idle mode. It is called by default_idle() in process.c file.

Definition at line 154 of file system.c.

{
      if (likely(!mxc_jtag_enabled)) {
            if (gpc_dvfs_clk == NULL)
                  gpc_dvfs_clk = clk_get(NULL, "gpc_dvfs_clk");
            /* gpc clock is needed for SRPG */
            clk_enable(gpc_dvfs_clk);
            mxc_cpu_lp_set(arch_idle_mode);
            if ((mxc_cpu_is_rev(CHIP_REV_2_0)) < 0) {
                  u32 l2_iram_addr = IDLE_IRAM_BASE_ADDR;

                  if (!iram_ready)
                        return;

                  if (l2_iram_addr > 0x1FFE8000)
                        cpu_cortexa8_do_idle(IO_ADDRESS(l2_iram_addr));
            } else {
                  cpu_do_idle();
            }
            clk_disable(gpc_dvfs_clk);
      }
}


Generated by  Doxygen 1.6.0   Back to index