mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-13 09:00:39 +09:00
gpu midgard : fix oops if someone set freq in dts
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user