diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_scale.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c index d2229a6a..e3b21c5a 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c | |||
@@ -181,6 +181,10 @@ static int gk20a_scale_target(struct device *dev, unsigned long *freq, | |||
181 | if (local_freq > max_freq) | 181 | if (local_freq > max_freq) |
182 | local_freq = max_freq; | 182 | local_freq = max_freq; |
183 | 183 | ||
184 | /* Check for duplicate request */ | ||
185 | if (local_freq == g->devfreq->previous_freq) | ||
186 | return 0; | ||
187 | |||
184 | /* set the final frequency */ | 188 | /* set the final frequency */ |
185 | rounded_rate = platform->clk_round_rate(dev, local_freq); | 189 | rounded_rate = platform->clk_round_rate(dev, local_freq); |
186 | 190 | ||