aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2018-03-13 17:07:58 +0200
committerVille Syrjälä <[email protected]>2018-03-16 18:31:49 +0200
commit2f0e9d804935970a4ce0f58dd046b41881bfd8f3 (patch)
treee5b12b5b3bb171b37ec79ba10296bf64bbc690aa /tools/perf/util/scripting-engines/trace-event-python.c
parentdf550548c6339e0d032af4a7f9bd7200ab0c827b (diff)
drm: Make drm_mode_vrefresh() a bit more accurate
Do the refresh rate calculation with a single division. This gives us slightly more accurate results, especially for interlaced since we don't just double the final truncated result. We do lose one bit compared to the old way, so with an interlaced mode the new code can only handle ~2GHz instead of the ~4GHz the old code handeled. Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions