Changeset 10864 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jul 24, 2008 5:44:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/mp-r0drv-linux.c
r9429 r10864 194 194 Args.cHits = 0; 195 195 196 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) 197 rc = on_each_cpu(rtmpLinuxWrapper, &Args, 1 /* wait */); 196 198 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 197 199 rc = on_each_cpu(rtmpLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */); 198 199 200 #else /* older kernels */ 200 201 201 # ifdef preempt_disable 202 202 preempt_disable(); … … 229 229 preempt_disable(); 230 230 # endif 231 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) 232 rc = smp_call_function(rtmpLinuxWrapper, &Args, 1 /* wait */); 233 #else /* older kernels */ 231 234 rc = smp_call_function(rtmpLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */); 235 #endif /* older kernels */ 232 236 # ifdef preempt_enable 233 237 preempt_enable(); … … 281 285 if (RTMpIsCpuOnline(idCpu)) 282 286 { 283 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19) 287 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) 288 rc = smp_call_function_single(idCpu, rtmpLinuxWrapper, &Args, 1 /* wait */); 289 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19) 284 290 rc = smp_call_function_single(idCpu, rtmpLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */); 285 #else 291 #else /* older kernels */ 286 292 rc = smp_call_function(rtmpOnSpecificLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */); 287 #endif 293 #endif /* older kernels */ 288 294 Assert(rc == 0); 289 295 rc = Args.cHits ? VINF_SUCCESS : VERR_CPU_OFFLINE;
Note:
See TracChangeset
for help on using the changeset viewer.