Platform/ECM3532/M3/hw/power/ecm3532/src/eta_pwr_gov.c
/**
 *  step up policy
 *
 *  if current policy is not the max, step up policy
 *
 *  index and set the same
 *
 *  @param void
 *
 */
step up policy
if current policy is not the max, step up policy

index and set the same

@param void
step up policy if current policy is not the max step up policy index and set the same @param void
static void
ecm3531_stepup_policy(uint32_t step_size)
{
    if (ecm3531_pg.curr_freq  < ecm3531_max_freq)
    {
        ecm3531_pg.curr_freq += step_size;
        if (ecm3531_pg.curr_freq > ecm3531_max_freq)
            ecm3531_pg.curr_freq = ecm3531_max_freq;
        ecm3531_set_policy(ecm3531_pg.curr_freq);
#ifdef CONFIG_PM_MON
        send_mon_event(DVFS_OPP, ecm3531_pg.curr_freq);
#endif
    }
}
static void ecm3531_stepup_policy ( uint32_t step_size ) { if ( ecm3531_pg . curr_freq < ecm3531_max_freq ) { ecm3531_pg . curr_freq += step_size ; if ( ecm3531_pg . curr_freq > ecm3531_max_freq ) ecm3531_pg . curr_freq = ecm3531_max_freq ; ecm3531_set_policy ( ecm3531_pg . curr_freq ) ; #ifdef CONFIG_PM_MON send_mon_event ( DVFS_OPP , ecm3531_pg . curr_freq ) ; #endif } }
step up policy
  if current policy is not the max, step up policy
step up policy if current policy is not the max step up policy