ARM: tegra11: clock: Fix system bus clock rounding
authorAlex Frid <afrid@nvidia.com>
Wed, 12 Dec 2012 01:24:16 +0000 (17:24 -0800)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Wed, 19 Dec 2012 08:10:47 +0000 (00:10 -0800)
commitfd9efad25193b30f0312e93a94e4cef8fbf6c478
treeb53c78e5d6390251f52e68aefeec1f488d787b87
parent7a7ce22937aa574407ba74afe2fcd4655a3143a2
ARM: tegra11: clock: Fix system bus clock rounding

Made sure system bus clock (SCLK) round rate operation follows the
same policy on fractional divisors as set rate operation - either both
operations allow fractions, or both does not support them (otherwise,
clock rate stats are confused).

Change-Id: I3814d66905c01f2ff84b0402be9b9a3d0b113fd6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/171213
(cherry picked from commit 4c5f6f2a6a9055d58017f619cfcf4b72fe843a48)
Reviewed-on: http://git-master/r/172163
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
arch/arm/mach-tegra/tegra11_clocks.c