diff --git a/drivers/devfreq/governor_pod_scaling.c b/drivers/devfreq/governor_pod_scaling.c index 3ffaeb78..cca36999 100644 --- a/drivers/devfreq/governor_pod_scaling.c +++ b/drivers/devfreq/governor_pod_scaling.c @@ -799,8 +799,10 @@ static int nvhost_pod_estimate_freq(struct devfreq *df, msecs_to_jiffies(podgov->p_slowdown_delay)); } - if (!(*freq) || - (freqlist_up(podgov, *freq, 0) == dev_stat.current_frequency)) + if (!(*freq)) + *freq = dev_stat.current_frequency; + + if (freqlist_up(podgov, *freq, 0) == dev_stat.current_frequency) return 0; podgov->last_scale = now;