drm/i915/icl: keep track of unused pll while looping
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 25 Jan 2019 22:24:44 +0000 (14:24 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 29 Jan 2019 22:35:07 +0000 (14:35 -0800)
commit5b0bd14dcc6bf0d28ad908aa1b8835667f860c84
tree57894062f56466946696081a75495a62136db3eb
parent20fd2ab7be40658ded75f8a49cf649845c1e3572
drm/i915/icl: keep track of unused pll while looping

Instead of looping again on the range of plls, just keep track of one
unused one and use it later.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190125222444.19926-5-lucas.demarchi@intel.com
drivers/gpu/drm/i915/intel_dpll_mgr.c