When calculating the MPU freq, make sure not to overflow by using a uint64_t.

PR:	arm/187223
Submitted by:	Svatopluk Kraus <onwahe@gmail.com>
This commit is contained in:
Olivier Houchard 2014-03-06 21:07:13 +00:00
parent 157b40af8e
commit 5b4e50ae33

View File

@ -990,7 +990,7 @@ omap4_clk_get_arm_fclk_freq(struct ti_clock_dev *clkdev,
/* Calculate the MPU freq */
mpuclk = (sysclk * pll_mult) / pll_div;
mpuclk = ((uint64_t)sysclk * pll_mult) / pll_div;
/* Return the value */
if (freq)