diff options
| author | Alexander Kuleshov <[email protected]> | 2016-02-27 03:14:13 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2016-02-27 07:55:30 +0000 |
| commit | 7aca0c07207385cca76025cc85231519935722b9 (patch) | |
| tree | 3ef5dafb42ad1f6772df77eb499d660176c75599 /net/switchdev/switchdev.c | |
| parent | clockevents/drivers/exynos_mct: Implement ->set_state_oneshot_stopped() (diff) | |
| download | kernel-7aca0c07207385cca76025cc85231519935722b9.tar.gz kernel-7aca0c07207385cca76025cc85231519935722b9.zip | |
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 <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Richard Cochran <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
