diff options
author | Alexander Kuleshov <[email protected]> | 2016-02-26 19:14:13 -0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2016-02-27 08:55:30 +0100 |
commit | 7aca0c07207385cca76025cc85231519935722b9 (patch) | |
tree | 3ef5dafb42ad1f6772df77eb499d660176c75599 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 07f101d33def572c7018626735475f88dabecebf (diff) |
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 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions