mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
rk3288 midgard:optimize gpu frequency scaling
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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--;
|
||||
|
||||
Reference in New Issue
Block a user