]> git.karo-electronics.de Git - karo-tx-linux.git/commit
The parameter's origin type is long. On an i386 architecture, it can
authorhank <pyu@redhat.com>
Wed, 3 Aug 2011 00:52:34 +0000 (10:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 8 Aug 2011 04:03:07 +0000 (14:03 +1000)
commit98a1d2512a54fe980d57db4319fac3bbe3159af5
tree24498bb872fb976cdd98e1ec95df992553ece691
parent2544ad1e046aedee31040c712a0cccd35888ed12
The parameter's origin type is long.  On an i386 architecture, it can
easily be larger than 0x80000000, causing this function to convert it to a
sign-extended u64 type.  Change the type to unsigned long so we get the
correct result.

[akpm@linux-foundation.org: build fix]
Signed-off-by: hank <pyu@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/jiffies.h
kernel/time.c