gpu midgard : fix oops if someone set freq in dts

This commit is contained in:
xxm
2014-04-11 09:48:12 +08:00
committed by Cody Xie
parent 10bf7f6fac
commit 6b0bce2160

View File

@@ -101,7 +101,7 @@ static void mali_dvfs_event_proc(struct work_struct *w)
platform = (struct rk_context *)dvfs_status->kbdev->platform_context;
spin_lock_irqsave(&mali_dvfs_spinlock, flags);
if (dvfs_status->utilisation > mali_dvfs_infotbl[dvfs_status->step].max_threshold)
if ((dvfs_status->utilisation > mali_dvfs_infotbl[dvfs_status->step].max_threshold) && (dvfs_status->step < MALI_DVFS_STEP-1))
{
#if 0
if (dvfs_status->step==kbase_platform_dvfs_get_level(450))