]> git.kernelconcepts.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>
Mon, 5 Sep 2011 07:02:08 +0000 (17:02 +1000)
commitd7b2c4ad569f13f44b05018b9abb65c6891609f0
treed7707105a5ce5497380e9f758cb445cae8f6874b
parentb19968051594fce7910b4a758dd862c915b0d68c
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