Changeset 21766 in vbox for trunk/src/VBox/Runtime/r0drv/linux
- Timestamp:
- Jul 22, 2009 12:13:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/thread-r0drv-linux.c
r21552 r21766 99 99 c = g_acPreemptDisabled[smp_processor_id()]; 100 100 AssertMsg(c >= 0 && c < 32, ("%d\n", c)); 101 return c == 0 && !in_atomic() && !irqs_disabled(); 101 if (c != 0) 102 return false; 103 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 32) 104 if (in_atomic()) 105 return false; 106 # endif 107 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 28) 108 if (!irqs_disabled()) 109 return false; 110 # else 111 if (!ASMIntAreEnabled()) 112 return false; 113 # endif 114 return true; 102 115 #endif 103 116 }
Note:
See TracChangeset
for help on using the changeset viewer.