Changeset 59956 in vbox for trunk/src/VBox/Additions/linux/drm
- Timestamp:
- Mar 8, 2016 8:05:32 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_irq.c
r59794 r59956 94 94 vbox->last_mode_hints); 95 95 AssertMsgRCReturnVoid(rc, ("VBoxHGSMIGetModeHints failed, rc=%Rrc.\n", rc)); 96 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0) 96 97 drm_modeset_lock_all(dev); 98 #else 99 mutex_lock(&dev->mode_config.mutex); 100 #endif 97 101 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { 98 102 vbox_connector = to_vbox_connector(connector); … … 116 120 } 117 121 } 122 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0) 118 123 drm_modeset_unlock_all(dev); 124 #else 125 mutex_unlock(&dev->mode_config.mutex); 126 #endif 119 127 } 120 128 … … 137 145 LogFunc(("vboxvideo: %d: vbox=%p\n", __LINE__, vbox)); 138 146 vbox_update_mode_hints(vbox); 147 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) 139 148 ret = drm_irq_install(vbox->dev, vbox->dev->pdev->irq); 149 #else 150 ret = drm_irq_install(vbox->dev); 151 #endif 140 152 if (unlikely(ret != 0)) { 141 153 vbox_irq_fini(vbox);
Note:
See TracChangeset
for help on using the changeset viewer.