]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use intel_pipe_wm in hsw_find_best_results
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 9 Oct 2013 16:17:58 +0000 (19:17 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Oct 2013 07:58:13 +0000 (09:58 +0200)
commitf5deceaa2d2f691ed63c6a1bf0c3c83932e07088
tree4e0643db3d71eaa26c92e9c95b16523d87d8a742
parent81d2bfbeb7bbaa4d503cd9b48380d3c37de3ee25
drm/i915: Use intel_pipe_wm in hsw_find_best_results

Let's try to keep using the intermediate intel_pipe_wm representation
for as long as possible. It avoids subtle knowledge about the
internals of the hardware registers when trying to choose the
best watermark configuration.

While at it replace the memset() w/ zero initialization.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c