summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/tegra11_clocks.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/tegra11_clocks.c b/arch/arm/mach-tegra/tegra11_clocks.c
index ef584a4b656f..27aab964aae2 100644
--- a/arch/arm/mach-tegra/tegra11_clocks.c
+++ b/arch/arm/mach-tegra/tegra11_clocks.c
@@ -4888,7 +4888,10 @@ static long tegra11_clk_cbus_round_updown(struct clk *c, unsigned long rate,
c->dvfs->freqs[n-2] + CBUS_FINE_GRANULARITY_RANGE);
threshold -= CBUS_FINE_GRANULARITY_RANGE;
- if (rate <= threshold)
+ if (rate == threshold)
+ return threshold;
+
+ if (rate < threshold)
return up ? threshold : c->dvfs->freqs[n-2];
rate = (up ? DIV_ROUND_UP(rate, CBUS_FINE_GRANULARITY) :