[Intel-gfx] [PATCH 2/6] drm/i915: Move drm_crtc_vblank_get out of disabled pre-emption area.

2016-08-04 Thread Daniel Vetter
On Wed, Aug 03, 2016 at 02:33:35PM -0700, Rodrigo Vivi wrote: > drm_crtc_vblank_get call the drm_vblank_prepare that will be used soon > to control power saving states or anything else that needs a mutex > before the vblank happens. > > local_irq_disable disables kernel preemption so we won't be a

[PATCH 2/6] drm/i915: Move drm_crtc_vblank_get out of disabled pre-emption area.

2016-08-03 Thread Rodrigo Vivi
drm_crtc_vblank_get call the drm_vblank_prepare that will be used soon to control power saving states or anything else that needs a mutex before the vblank happens. local_irq_disable disables kernel preemption so we won't be able to use mutex inside drm_crtc_vblank_get. For this reason we need to