drm/i915: Only update shared dpll state when needed
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 20 May 2014 13:19:19 +0000 (15:19 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 20 May 2014 13:19:19 +0000 (15:19 +0200)
commitf2a69f44aff8d96eb9080b97e39f3230b2c02ab2
treeda233da78f3d10e70792fd65ad0e487782cd69dc
parentbdd4b6a655749970cc632aafc5fd596c07b60b1c
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 <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
This page took 0.044247 seconds and 5 git commands to generate.