time: Change jiffies_to_clock_t() argument type to unsigned long
commitec9ee3fc9e547d98eb66c260b84525f0a4e46df9
authorhank <pyu@redhat.com>
Tue, 20 Sep 2011 20:53:39 +0000 (20 13:53 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Nov 2011 20:32:28 +0000 (7 12:32 -0800)
tree855cc49326f460fa5afb36ab409b58766bbc6bbc
parent4d3e486fb80b593cdb04d240b2cadaf8c40dd863
time: Change jiffies_to_clock_t() argument type to unsigned long

commit cbbc719fccdb8cbd87350a05c0d33167c9b79365 upstream.

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.

Signed-off-by: hank <pyu@redhat.com>
Cc: John Stultz <john.stultz@linaro.org>
[ build fix ]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/jiffies.h
kernel/time.c