]> git.karo-electronics.de Git - linux-beck.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)
committerIngo Molnar <mingo@elte.hu>
Wed, 21 Sep 2011 08:28:51 +0000 (10:28 +0200)
commitcbbc719fccdb8cbd87350a05c0d33167c9b79365
treef62c754b5e74756024b16abaad69a70779a6a84d
parent4523f6ada86853750565c68e17126af2e3df9b8a
time: Change jiffies_to_clock_t() argument type to unsigned long

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>
Cc: <stable@kernel.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>
include/linux/jiffies.h
kernel/time.c