]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Extract intel_crtc_ddb_weight()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 Jan 2021 20:56:26 +0000 (22:56 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 26 Jan 2021 13:40:52 +0000 (15:40 +0200)
commit965f090c559fd0f50c91dc44d705d46cf37d0d34
tree48757ce9f800f84eeec6d3b779e5b958b2fafd43
parent35bbd9b33f3976a86cb5df4b5a387d4d746878cb
drm/i915: Extract intel_crtc_ddb_weight()

skl_ddb_get_pipe_allocation_limits() doesn't care how the weights
for distributing the ddb are caclculated for each pipe. Put that
calculation into a separate function so that such mundane details
are hidden from view.

v2: s/adjusted_mode/pipe_mode/

Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210122205633.18492-2-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_pm.c