]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 3026/1: S3C2410 - avoid possible overflow in pll calculations
authorBen Dooks <ben-linux@fluff.org>
Thu, 20 Oct 2005 22:21:18 +0000 (23:21 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 20 Oct 2005 22:21:18 +0000 (23:21 +0100)
commit7c6b0b19b5972cfe94cdd750eca95cf797d251d0
tree05d79d60b96b59d62709b11c2b1c1b497cb70902
parenta680bfd9759aa7f69b5a376ab7ea3a888d9e52f0
[ARM] 3026/1: S3C2410 - avoid possible overflow in pll calculations

Patch from Ben Dooks

Avoid the possiblity that if the board is using
a 16.9334 or higher crystal with a high PLL
multiplier, then the pll value could overflow
the capability of an int.

Also fix the value types of the intermediate
variables to unsigned int.

Rewrite of patch from Guillaume Gourat

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-s3c2410/regs-clock.h