drm: Collect per-crtc vblank stuff to a struct
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 4 Oct 2013 11:53:36 +0000 (14:53 +0300)
committerDave Airlie <airlied@redhat.com>
Wed, 9 Oct 2013 05:55:31 +0000 (15:55 +1000)
commit5380e9293b865d88de04de6e5324726d8c5b53c9
tree5d28c8a6a1cf43a3b2a76f16bd9c59a7fd424c39
parentbf507d90cf0eecf5495f66f21dbb66e35e9131ae
drm: Collect per-crtc vblank stuff to a struct

drm_vblank_init() is too ugly. Make it a bit easier on the eye by
collecting all the per-crtc vblank counters, timestamps etc. to
a structure and just allocate an array of those.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_info.c
drivers/gpu/drm/drm_irq.c
drivers/gpu/drm/gma500/psb_irq.c
drivers/gpu/drm/i915/intel_pm.c
drivers/gpu/drm/omapdrm/omap_irq.c
include/drm/drmP.h