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)
commit3a97837784acbf9fed699fc04d1799b0eb742fdf
tree12297634077b24bcc6a01b779205043fc2a2a1f1
parent6438e0ddc870f282f7ad46c050c211063a574687
clocksource: Make delta calculation a function

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