]> 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)
commit2791a409a13f18c4d11eb7a2f4e860ad5a462bb2
tree48757ce9f800f84eeec6d3b779e5b958b2fafd43
parentd6a059e2d39fe1ed0acf6232daa02f19ef97091a
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