clocksource: Make delta calculation a function
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:05:10 +0000 (21:05 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 22:01:51 +0000 (15:01 -0700)
We want to move the TSC sanity check into core code to make NMI safe
accessors to clock monotonic[_raw] possible. For this we need to
sanity check the delta calculation. Create a helper function and
convert all sites to use it.

[ Build fix from jstultz ]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/clocksource.c
kernel/time/timekeeping.c
kernel/time/timekeeping_internal.h

Simple merge
Simple merge
Simple merge