VirtualBox

Changeset 51938 in vbox


Ignore:
Timestamp:
Jul 8, 2014 5:24:17 PM (10 years ago)
Author:
vboxsync
Message:

Runtime/r0drv: RHEL7 hack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c

    r50077 r51938  
    15291529
    15301530#ifdef CONFIG_NUMA_BALANCING
     1531# if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
     1532#  ifdef RHEL_RELEASE_CODE
     1533#   if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7, 0)
     1534#    define VBOX_NUMA_HACK_OLD
     1535#   endif
     1536#  endif
     1537# endif
    15311538            if (RT_SUCCESS(rc))
    15321539            {
    1533                 /** @todo Ugly hack! But right now we have no other means to disable
    1534                  *        automatic NUMA page balancing. */
     1540                /** @todo Ugly hack! But right now we have no other means to
     1541                 *        disable automatic NUMA page balancing. */
    15351542# ifdef RT_OS_X86
    1536 #  if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
     1543#  ifdef VBOX_NUMA_HACK_OLD
    15371544                pTask->mm->numa_next_reset = jiffies + 0x7fffffffUL;
    15381545#  endif
    15391546                pTask->mm->numa_next_scan  = jiffies + 0x7fffffffUL;
    15401547# else
    1541 #  if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
     1548#  ifdef VBOX_NUMA_HACK_OLD
    15421549                pTask->mm->numa_next_reset = jiffies + 0x7fffffffffffffffUL;
    15431550#  endif
     
    15451552# endif
    15461553            }
    1547 #endif
     1554#endif /* CONFIG_NUMA_BALANCING */
    15481555
    15491556            up_write(&pTask->mm->mmap_sem);
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