time: Change jiffies_to_clock_t() argument type to unsigned long
authorhank <pyu@redhat.com>
Tue, 20 Sep 2011 20:53:39 +0000 (13:53 -0700)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:33 +0000 (15:35 -0400)
commita019e7998fd21183e82409f8bf35ec0fc9b994e7
treed03e0a40b33c25004c488fc3e86bed236f0905f7
parent76bd0e219681e554f59988d6af3eaf21202809b0
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: Paul Gortmaker <paul.gortmaker@windriver.com>
include/linux/jiffies.h
kernel/time.c