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:
parent
157b40af8e
commit
5b4e50ae33
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user