]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic-helper: Extract drm_atomic_helper_calc_timestamping_constants()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 7 Sep 2020 12:00:24 +0000 (15:00 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Sep 2020 19:36:44 +0000 (22:36 +0300)
commit6291c2e761f409667fab2ff52499485eeb526057
treeae63f0bc26497a2c74f9caf642604b037ca19d1a
parentc127d1d6802ae87b248883cb1136dba256740fb3
drm/atomic-helper: Extract drm_atomic_helper_calc_timestamping_constants()

Put the vblank timestamping constants update loop into its own
function. It has no business living inside
drm_atomic_helper_update_legacy_modeset_state() so we'll be wanting
to move it out entirely. As a first step we'll still call it
from drm_atomic_helper_update_legacy_modeset_state().

v2: Drop comment about 'legacy state' in the new function

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200907120026.6360-1-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_atomic_helper.h