VirtualBox

Ignore:
Timestamp:
Mar 8, 2016 8:05:32 PM (9 years ago)
Author:
vboxsync
Message:

bugref:8087: Additions/x11: support non-root X server: fixes for building the drm module with the Oracle UEK kernel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_irq.c

    r59794 r59956  
    9494                               vbox->last_mode_hints);
    9595    AssertMsgRCReturnVoid(rc, ("VBoxHGSMIGetModeHints failed, rc=%Rrc.\n", rc));
     96#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0)
    9697    drm_modeset_lock_all(dev);
     98#else
     99    mutex_lock(&dev->mode_config.mutex);
     100#endif
    97101    list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
    98102        vbox_connector = to_vbox_connector(connector);
     
    116120        }
    117121    }
     122#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0)
    118123    drm_modeset_unlock_all(dev);
     124#else
     125    mutex_unlock(&dev->mode_config.mutex);
     126#endif
    119127}
    120128
     
    137145    LogFunc(("vboxvideo: %d: vbox=%p\n", __LINE__, vbox));
    138146    vbox_update_mode_hints(vbox);
     147#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
    139148    ret = drm_irq_install(vbox->dev, vbox->dev->pdev->irq);
     149#else
     150    ret = drm_irq_install(vbox->dev);
     151#endif
    140152    if (unlikely(ret != 0)) {
    141153        vbox_irq_fini(vbox);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette