Change-Id: I9f6b40f28f6ad779c65fffae70d41987a01ab10e
*pp_change_flag = -1;
}
}
+
+ if (decided_fs_idx < 0 ) {
+ printk("gpu debug, next index below 0\n");
+ decided_fs_idx = 0;
+ }
+ if (decided_fs_idx > pmali_plat->scale_info.maxclk) {
+ decided_fs_idx = pmali_plat->scale_info.maxclk;
+ printk("gpu debug, next index above max, set to %d\n", decided_fs_idx);
+ }
+
if (change_mode)
mali_stay_count = pmali_plat->dvfs_table[decided_fs_idx].keep_count;
*next_fs_idx = decided_fs_idx;