]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Initialize drm_driver vblank funcs at compile time
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 19 Jun 2019 17:08:42 +0000 (20:08 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 26 Jun 2019 16:23:28 +0000 (19:23 +0300)
commit7d23e59376039d08728444cf05b2db6f7b86ff22
treee786eee507777a43b0b223dcdab42988b5996b6a
parentb318b82455bd9b2899a61108a6d84d4a2d4b6df8
drm/i915: Initialize drm_driver vblank funcs at compile time

Move the .get_vblank_timestamp() and .get_scanout_position()
initialization to happen at compile time. No point in delaying
it since we always assign the same functions.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190619170842.20579-5-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_irq.h