Ticket #12638: VBox-numa_no_reset.diff
| File VBox-numa_no_reset.diff, 1.5 KB (added by , 11 years ago) |
|---|
-
src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
66 66 #endif 67 67 68 68 69 /* 70 * Distribution kernels like to backport things so that we can't always rely 71 * on Linux kernel version numbers to detect kernel features. 72 */ 73 #ifdef CONFIG_SUSE_KERNEL 74 # if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 12, 0) 75 # define NUMA_NO_RESET 76 # endif 77 #elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) 78 # define NUMA_NO_RESET 79 #endif 80 69 81 /******************************************************************************* 70 82 * Structures and Typedefs * 71 83 *******************************************************************************/ … … 1533 1545 /** @todo Ugly hack! But right now we have no other means to disable 1534 1546 * automatic NUMA page balancing. */ 1535 1547 # ifdef RT_OS_X86 1536 # if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)1548 # ifndef NUMA_NO_RESET 1537 1549 pTask->mm->numa_next_reset = jiffies + 0x7fffffffUL; 1538 1550 # endif 1539 1551 pTask->mm->numa_next_scan = jiffies + 0x7fffffffUL; 1540 1552 # else 1541 # if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)1553 # ifndef NUMA_NO_RESET 1542 1554 pTask->mm->numa_next_reset = jiffies + 0x7fffffffffffffffUL; 1543 1555 # endif 1544 1556 pTask->mm->numa_next_scan = jiffies + 0x7fffffffffffffffUL;

