timekeeping: Use mul_u64_u32_shr() instead of open coding it
authorThomas Gleixner <tglx@linutronix.de>
Thu, 8 Dec 2016 20:49:38 +0000 (20:49 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 9 Dec 2016 11:06:42 +0000 (12:06 +0100)
commitc029a2bec66e42e57538cb65e28618baf6a4b311
tree44a053f24b8ab7f3a81826d181499aa0513b8812
parentcbd99e3b289e43000c29aa4aa9b94b394cdc68bd
timekeeping: Use mul_u64_u32_shr() instead of open coding it

The resume code must deal with a clocksource delta which is potentially big
enough to overflow the 64bit mult.

Replace the open coded handling with the proper function.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Parit Bhargava <prarit@redhat.com>
Cc: Laurent Vivier <lvivier@redhat.com>
Cc: "Christopher S. Hall" <christopher.s.hall@intel.com>
Cc: Chris Metcalf <cmetcalf@mellanox.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Liav Rehana <liavr@mellanox.com>
Cc: John Stultz <john.stultz@linaro.org>
Link: http://lkml.kernel.org/r/20161208204228.921674404@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/timekeeping.c