]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gen9: don't call ilk_pipe_pixel_rate() twice on the same function
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 7 Oct 2016 20:28:58 +0000 (17:28 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 18 Oct 2016 13:05:48 +0000 (11:05 -0200)
commit88e810d4a9648986d67df7ac1b5bbee3130e725b
tree7ad113f458b8b96acfb7789859d9e31347866ddf
parent3bb73bce617ba5d99628dcc45ad02b843b3a39a2
drm/i915/gen9: don't call ilk_pipe_pixel_rate() twice on the same function

We used to call skl_pipe_pixel_rate(), which used to be a single
one-line return, but now we're  calling ilk_pipe_pixel_rate() which is
not as simple, so it's better to just call it once and store the
computed value for reuse.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1475872138-16194-2-git-send-email-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/intel_pm.c