ARM: tegra12: clock: Fix system bus clock rounding
authorKaz Fukuoka <kfukuoka@nvidia.com>
Wed, 25 Sep 2013 23:42:51 +0000 (16:42 -0700)
committerChao Xu <cxu@nvidia.com>
Wed, 23 Oct 2013 23:08:05 +0000 (16:08 -0700)
commit61a75c0981cf9a4a47c09e7fcabd881d7ac526ae
treef6bb49de2fde6a44f5171ef97bccdf3aaed9acbc
parent87339ef842d8e640cee18ca4429befc08fe64276
ARM: tegra12: 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).

Ported from Tegra11 Change-Id: I3814d66905c01f2ff84b0402be9b9a3d0b113fd6

Change-Id: If4b0eed9be2ce8967c5597ac7471325d0043a38f
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/298504
Reviewed-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Tested-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>
arch/arm/mach-tegra/tegra12_clocks.c