Platform/ECM3532/M3/hw/power/ecm3532/src/eta_pwr_gov.c
/**
 * post lpm work func
 *
 * Start HW timer of not confiure else restart it
 *
 * @param ticks  amounts of ticks in idle
 *
 * @return int   actual sleep ticks programmed
 */
post lpm work func
Start HW timer of not confiure else restart it

@param ticks  amounts of ticks in idle

@return int   actual sleep ticks programmed
post lpm work func Start HW timer of not confiure else restart it @param ticks amounts of ticks in idle @return int actual sleep ticks programmed
int ecm35xx_post_lpm(uint32_t sticks)
{
    if (ecm3531_pg.tmr_state == TIMER_NCFG) {
        ecm3531_start_gov_timer(ecm3531_pg.tmr_period);
#ifdef CONFIG_PM_MON
        send_mon_event(DVFS_OPP, ecm3531_pg.curr_freq);
#endif
    } else {
        ecm3531_pg.sleep_cnt += sticks;
        ecm3531_pg.elapsed_cnt += sticks;
        ecm3531_set_next_policy();
    }
    return sticks;
}
int ecm35xx_post_lpm ( uint32_t sticks ) { if ( ecm3531_pg . tmr_state == TIMER_NCFG ) { ecm3531_start_gov_timer ( ecm3531_pg . tmr_period ) ; #ifdef CONFIG_PM_MON send_mon_event ( DVFS_OPP , ecm3531_pg . curr_freq ) ; #endif } else { ecm3531_pg . sleep_cnt += sticks ; ecm3531_pg . elapsed_cnt += sticks ; ecm3531_set_next_policy ( ) ; } return sticks ; }
post lpm work func
 Start HW timer of not confiure else restart it
post lpm work func Start HW timer of not confiure else restart it
/* start timer */