summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
index c198f9f1..fe42bf97 100644
--- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
+++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
@@ -341,7 +341,7 @@ static long gp10b_round_clk_rate(struct device *dev, unsigned long rate)
341 int i; 341 int i;
342 342
343 for (i = 0; i < max_states; ++i) 343 for (i = 0; i < max_states; ++i)
344 if (freq_table[i] > rate) 344 if (freq_table[i] >= rate)
345 return freq_table[i]; 345 return freq_table[i];
346 346
347 return freq_table[max_states - 1]; 347 return freq_table[max_states - 1];