diff options
author | Grygorii Strashko <[email protected]> | 2016-12-06 18:00:44 -0600 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-12-07 11:13:48 -0500 |
commit | 88f0f0b0bebfbe086dda853f591ae3a014b19e40 (patch) | |
tree | 4959691cfec4f836023a6ed9e392164946120b7d /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 5304121adae9fc59f4b640f82200868112edd0bd (diff) |
net: ethernet: ti: cpts: calc mult and shift from refclk freq
The cyclecounter mult and shift values can be calculated based on the
CPTS rfclk frequency and timekeepnig framework provides required algos
and API's.
Hence, calc mult and shift basing on CPTS rfclk frequency if both
cpts_clock_shift and cpts_clock_mult properties are not provided in DT (the
basis of calculation algorithm is borrowed from
__clocksource_update_freq_scale() commit 7d2f944a2b83 ("clocksource:
Provide a generic mult/shift factor calculation")). After this change
cpts_clock_shift and cpts_clock_mult DT properties will become optional.
Cc: John Stultz <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Grygorii Strashko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions