OSDN Git Service

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)
commit4b31a9c77bf87f9d9e957f7a42f84c57a407e1f8
treeae63f0bc26497a2c74f9caf642604b037ca19d1a
parent00af6729b52ede86a08173c8d5f2c8cd9fa3390d
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