]> 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)
commita57a914b286ffc9401b560d9da91fb26a44a2742
tree4e0643db3d71eaa26c92e9c95b16523d87d8a742
parent2c101aaee2f704895dab9a2fb0f217aef6821c53
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