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

index and set the same

@param void
step down policy if current policy is not the minimum reduce policy index and set the same @param void
static void
ecm3531_stepdown_policy(uint32_t step_size)
{
        if (ecm3531_pg.curr_freq != ecm3531_mini_freq)
        {
            if (ecm3531_pg.curr_freq >=
                    (step_size + ecm3531_mini_freq))
                ecm3531_pg.curr_freq -= step_size;
            else
                ecm3531_pg.curr_freq = ecm3531_mini_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_stepdown_policy ( uint32_t step_size ) { if ( ecm3531_pg . curr_freq != ecm3531_mini_freq ) { if ( ecm3531_pg . curr_freq >= ( step_size + ecm3531_mini_freq ) ) ecm3531_pg . curr_freq -= step_size ; else ecm3531_pg . curr_freq = ecm3531_mini_freq ; ecm3531_set_policy ( ecm3531_pg . curr_freq ) ; #ifdef CONFIG_PM_MON send_mon_event ( DVFS_OPP , ecm3531_pg . curr_freq ) ; #endif } }
step down policy
  if current policy is not the minimum, reduce policy
step down policy if current policy is not the minimum reduce policy