From: Paul Mackerras Date: Sun, 30 Oct 2005 11:55:52 +0000 (+1100) Subject: powerpc: Fix time setting bug on 32-bit X-Git-Tag: v2.6.15-rc1~59^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f6b5b973a125de0dbe236ce659a495787c81ff0;p=pandora-kernel.git powerpc: Fix time setting bug on 32-bit This fixes a bug where settimeofday would set the wrong parameters in do_gtod, resulting in gettimeofday returning a value about 4 hours after the correct time. The bug was that we divided a negative 64-bit value with do_div, which treated it as unsigned and gave us a result that was approximately 1.8e10 too large (since the divisor was 1e9). Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed