summaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorAlexander Kuleshov <kuleshovmail@gmail.com>2016-02-26 19:14:13 -0800
committerThomas Gleixner <tglx@linutronix.de>2016-02-27 08:55:30 +0100
commit7aca0c07207385cca76025cc85231519935722b9 (patch)
tree3ef5dafb42ad1f6772df77eb499d660176c75599 /kernel/time
parent07f101d33def572c7018626735475f88dabecebf (diff)
downloadop-kernel-dev-7aca0c07207385cca76025cc85231519935722b9.zip
op-kernel-dev-7aca0c07207385cca76025cc85231519935722b9.tar.gz
clocksource: Introduce clocksource_freq2mult()
The clocksource_khz2mult() and clocksource_hz2mult() share similar code wihch calculates a mult from the given frequency. Both implementations in differ only in value of a frequency. This patch introduces the clocksource_freq2mult() helper with generic implementation of mult calculation to prevent code duplication. Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com> Signed-off-by: John Stultz <john.stultz@linaro.org> Cc: Prarit Bhargava <prarit@redhat.com> Cc: Richard Cochran <richardcochran@gmail.com> Link: http://lkml.kernel.org/r/1456542854-22104-2-git-send-email-john.stultz@linaro.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/time')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud