From: Atsushi Nemoto Date: Thu, 2 Apr 2009 16:01:21 +0000 (+0900) Subject: MIPS: TXx9: Fix possible overflow in clock calculations X-Git-Tag: linux-omap-v2.6.30-rc6~13^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=740ebe4a54fae1705705ec87ce511b16ffb50659;p=pandora-kernel.git MIPS: TXx9: Fix possible overflow in clock calculations Addition of -fwrapv option in 2.6.29 discloses possible overflow with signed arithmetics. For example, result of "a * 6 / 12" (int a = 400000000) is 200000000 without -fwrapv but -157913941 with -fwrapv. Change some variable to unsigned to avoid such overflows. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed