VirtualBox

Changeset 68336 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Aug 8, 2017 9:35:32 AM (7 years ago)
Author:
vboxsync
Message:

Additions/linux/drm: refined the RHEL_7 test to distinguish between RHEL_73 (DRM patchlevel 4.6.5) and RHEL_74 (DRM patchlevel 4.10.13) -- additional changes

Location:
trunk/src/VBox/Additions/linux/drm
Files:
2 edited

Legend:

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

    r68334 r68336  
    244244}
    245245
    246 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
     246#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) && !defined(RHEL_74)
    247247static void vbox_master_drop(struct drm_device *dev,
    248248                             struct drm_file *file_priv, bool from_release)
  • trunk/src/VBox/Additions/linux/drm/vbox_ttm.c

    r68334 r68336  
    205205        int r;
    206206
    207 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
     207#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) && !defined(RHEL_74)
    208208        r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem);
    209 #elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0)
     209#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0) && !defined(RHEL_74)
    210210        r = ttm_bo_move_memcpy(bo, evict, interruptible, no_wait_gpu, new_mem);
    211211#else
     
    260260        .ttm_tt_unpopulate = vbox_ttm_tt_unpopulate,
    261261        .init_mem_type = vbox_bo_init_mem_type,
    262 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
     262#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0) || defined(RHEL_74)
    263263        .eviction_valuable = ttm_bo_eviction_valuable,
    264264#endif
     
    271271        .io_mem_pfn = ttm_bo_default_io_mem_pfn,
    272272#endif
    273 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
     273#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)) \
     274    || defined(RHEL_74)
    274275        .lru_tail = &ttm_bo_default_lru_tail,
    275276        .swap_lru_tail = &ttm_bo_default_swap_lru_tail,
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