time: Change jiffies_to_clock_t() argument type to unsigned long
commit10bb7e9e824bc2d727a7b5a0813ded0461a293e9
authorhank <pyu@redhat.com>
Tue, 20 Sep 2011 20:53:39 +0000 (20 13:53 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:43:10 +0000 (11 09:43 -0800)
treea7d63e997743f2b68adbbc1d4e66b072cfd4a3bf
parent986666ccf6868d11606dc28973979806d5525af9
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