Rev 6935 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6935 | Rev 7144 | ||
---|---|---|---|
Line 906... | Line 906... | ||
906 | 906 | ||
907 | static void send_vblank_event(struct drm_device *dev, |
907 | static void send_vblank_event(struct drm_device *dev, |
908 | struct drm_pending_vblank_event *e, |
908 | struct drm_pending_vblank_event *e, |
909 | unsigned long seq, struct timeval *now) |
909 | unsigned long seq, struct timeval *now) |
910 | { |
- | |
911 | assert_spin_locked(&dev->event_lock); |
- | |
912 | 910 | { |
|
913 | e->event.sequence = seq; |
911 | e->event.sequence = seq; |
914 | e->event.tv_sec = now->tv_sec; |
912 | e->event.tv_sec = now->tv_sec; |
Line 915... | Line -... | ||
915 | e->event.tv_usec = now->tv_usec; |
- | |
916 | - | ||
917 | list_add_tail(&e->base.link, |
- | |
- | 913 | e->event.tv_usec = now->tv_usec; |
|
918 | &e->base.file_priv->event_list); |
914 | |
Line 919... | Line 915... | ||
919 | wake_up_interruptible(&e->base.file_priv->event_wait); |
915 | |
920 | } |
916 | } |
921 | 917 | ||
Line 1239... | Line 1235... | ||
1239 | DRM_DEBUG_VBL("crtc %d, vblank enabled %d, inmodeset %d\n", |
1235 | DRM_DEBUG_VBL("crtc %d, vblank enabled %d, inmodeset %d\n", |
1240 | pipe, vblank->enabled, vblank->inmodeset); |
1236 | pipe, vblank->enabled, vblank->inmodeset); |
Line 1241... | Line 1237... | ||
1241 | 1237 | ||
1242 | /* Avoid redundant vblank disables without previous drm_vblank_on(). */ |
1238 | /* Avoid redundant vblank disables without previous drm_vblank_on(). */ |
1243 | if (drm_core_check_feature(dev, DRIVER_ATOMIC) || !vblank->inmodeset) |
1239 | if (drm_core_check_feature(dev, DRIVER_ATOMIC) || !vblank->inmodeset) |
Line 1244... | Line 1240... | ||
1244 | vblank_disable_and_save(dev, pipe); |
1240 | vblank_disable_and_save(dev, pipe); |
Line 1245... | Line 1241... | ||
1245 | 1241 | ||
1246 | wake_up(&vblank->queue); |
1242 | wake_up(&vblank->queue); |