clocksource: Fix abs() usage w/ 64bit values
authorJohn Stultz <john.stultz@linaro.org>
Tue, 15 Sep 2015 01:05:20 +0000 (18:05 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 2 Oct 2015 20:53:01 +0000 (22:53 +0200)
commit67dfae0cd72fec5cd158b6e5fb1647b7dbe0834c
tree6b4740d09261098ec7731412b8537418df5ec255
parentbdf7344e14d826d0df438a55fc51146d179e198d
clocksource: Fix abs() usage w/ 64bit values

This patch fixes one cases where abs() was being used with 64-bit
nanosecond values, where the result may be capped at 32-bits.

This potentially could cause watchdog false negatives on 32-bit
systems, so this patch addresses the issue by using abs64().

Signed-off-by: John Stultz <john.stultz@linaro.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1442279124-7309-2-git-send-email-john.stultz@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/clocksource.c