]> 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>
Tue, 9 Aug 2011 03:01:28 +0000 (13:01 +1000)
commitf5e99cecad6750374a70628b41553d67a37e5d9a
tree198cc6606aa4b2536cde6bd4288e2dae04cb7c0f
parent8023f16b3eb111a94fa39965d5bc3f8808812a42
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