ARM: tegra: fix overflow in tegra20_pll_clk_round_rate()
authorStephen Warren <swarren@nvidia.com>
Mon, 10 Sep 2012 23:02:45 +0000 (17:02 -0600)
committerStephen Warren <swarren@nvidia.com>
Tue, 11 Sep 2012 16:05:55 +0000 (10:05 -0600)
commit7a74a4436b20980f8e19138e857bc7e39db5ad4b
tree6c82b601493c7622806a024da773c9e9fdcdd802
parentfa67ccb61d10fbd55d1c3b5b6b537e4d74da1e4b
ARM: tegra: fix overflow in tegra20_pll_clk_round_rate()

32-bit math isn't enough when e.g. *prate=12000000, and sel->n=1000.
Use 64-bit math to prevent this.

Cc: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/mach-tegra/tegra20_clocks.c