]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:54 +0000 (11:17 -0800)
commitd38433030e5cf8213776335f9551ede0d13dbe80
tree0c05534e97242e2d1ad113ad536f05dd092a1ea7
parent83712d4c7e57857765ab82fc5acb61a120fbd747
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