]> 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, 24 Aug 2011 23:46:14 +0000 (09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 9 Sep 2011 06:15:59 +0000 (16:15 +1000)
commitb5c65e276ad76af11e93a3677975643ceab83b61
treed15470168496fc6cc762e571feedd864bf037cb4
parentf865f7a40461877b669980b83c546bf7d7471956
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