aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/devfreq/governor_performance.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/devfreq/governor_performance.c')
-rw-r--r--drivers/devfreq/governor_performance.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/devfreq/governor_performance.c b/drivers/devfreq/governor_performance.c
index c0596b29176..574a06b1b1d 100644
--- a/drivers/devfreq/governor_performance.c
+++ b/drivers/devfreq/governor_performance.c
@@ -18,7 +18,10 @@ static int devfreq_performance_func(struct devfreq *df,
18 * target callback should be able to get floor value as 18 * target callback should be able to get floor value as
19 * said in devfreq.h 19 * said in devfreq.h
20 */ 20 */
21 *freq = UINT_MAX; 21 if (!df->max_freq)
22 *freq = UINT_MAX;
23 else
24 *freq = df->max_freq;
22 return 0; 25 return 0;
23} 26}
24 27