} while (0)
#ifndef CONFIG_MALI_DVFS
+static int mali_stay_count = 0;
static inline void mali_clk_exected(void)
{
mali_dvfs_threshold_table * pdvfs = pmali_plat->dvfs_table;
else
ret = 1;
}
+
+ if (flush)
+ mali_stay_count = pmali_plat->dvfs_table[currentStep].keep_count;
+
if (pp < pinfo->minpp)
pp = pinfo->minpp;
else if (pp > pinfo->maxpp)
#endif
#ifndef CONFIG_MALI_DVFS
-static int mali_stay_count = 0;
static void mali_decide_next_status(int utilization_pp, int* next_fs_idx,
int* pp_change_flag)
{
} else if (change_mode == 2) { /* decrease PPS */
*pp_change_flag = -1;
}
+ } else {
+ mali_stay_count = pmali_plat->dvfs_table[currentStep].keep_count;
+ scalingdbg(1, "reset to %d, decided_fs_idx=%d, mali_stay_count=%d\n",
+ currentStep, decided_fs_idx, mali_stay_count);
}
if (decided_fs_idx < 0 ) {
mali_stay_count = pmali_plat->dvfs_table[decided_fs_idx].keep_count;
*next_fs_idx = decided_fs_idx;
+ scalingdbg(1, "mali_stay_count=%d\n", mali_stay_count);
}
#endif