forked from rubenslte/android_kernel_samsung_msm8226
We need to calculate the same number in the clocksource code and the sched_clock code, so extract this code into its own function. We also drop the min_t and just use min() because the two types are the same. Change-Id: I65265c90f8d8e01dba82833ecac7b42af3a66414 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: John Stultz <john.stultz@linaro.org> Git-commit: 87d8b9eb7eb6669aad6435a51e9862362141ba76 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by: Ian Maund <imaund@codeaurora.org> Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>