rk3288 midgard:optimize gpu frequency scaling

This commit is contained in:
xxm
2014-04-11 11:56:41 +08:00
committed by Cody Xie
parent fa256c1543
commit 2dc00ccb2f
2 changed files with 3 additions and 3 deletions

View File

@@ -233,7 +233,7 @@ static void pm_callback_runtime_off(kbase_device *kbdev)
{
kbase_platform_clock_off(kbdev);
#ifdef CONFIG_MALI_MIDGARD_DVFS
if (kbase_platform_dvfs_enable(false, MALI_DVFS_CURRENT_FREQ)!= MALI_TRUE)
if (kbase_platform_dvfs_enable(false, p_mali_dvfs_infotbl[0].clock)!= MALI_TRUE)
printk("[err] disabling dvfs is faled\n");
#endif
}

View File

@@ -120,8 +120,8 @@ static void mali_dvfs_event_proc(struct work_struct *w)
BUG_ON(dvfs_status->step >= MALI_DVFS_STEP);
}
else if((dvfs_status->step > 0) && (dvfs_status->utilisation < mali_dvfs_infotbl[dvfs_status->step].min_threshold))
//else if((dvfs_status->step > 0) && (platform->time_tick == MALI_DVFS_TIME_INTERVAL) && (platform->utilisation < mali_dvfs_infotbl[dvfs_status->step].min_threshold))
//else if((dvfs_status->step > 0) && (dvfs_status->utilisation < mali_dvfs_infotbl[dvfs_status->step].min_threshold))
else if((dvfs_status->step > 0) && (platform->time_tick == MALI_DVFS_TIME_INTERVAL) && (platform->utilisation < mali_dvfs_infotbl[dvfs_status->step].min_threshold))
{
BUG_ON(dvfs_status->step <= 0);
dvfs_status->step--;