From: Daniel Vetter Date: Tue, 20 May 2014 13:19:19 +0000 (+0200) Subject: drm/i915: Only update shared dpll state when needed X-Git-Tag: omap-for-v3.16/fixes-against-rc1~44^2~38^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2a69f44aff8d96eb9080b97e39f3230b2c02ab2;p=pandora-kernel.git drm/i915: Only update shared dpll state when needed Instead of every time it isn't active: We only need to do that when the pll is currently unused, i.e. when pll->refcount == 0. For paranoia add a warning for the ibx case where plls have a fixed mapping and hence should always be unused after the call to intel_put_shared_dpll. v2: Simplify control flow and use struct assignment instead of memcpy as suggested by Damien. Reviewed-by: Damien Lespiau Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed