- Timestamp:
- Mar 6, 2015 10:14:06 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/mp-r0drv-linux.c
r54476 r54663 377 377 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) 378 378 cpumask_t DstCpuMask; 379 #endif 379 380 RTCPUID idCpuSelf = RTMpCpuId(); 380 381 bool const fCallSelf = idCpuSelf == idCpu1 || idCpuSelf == idCpu2; 381 #endif382 382 RTMPARGS Args; 383 383 Args.pfnWorker = pfnWorker; … … 406 406 rc = smp_call_function_mask(DstCpuMask, rtmpLinuxWrapperPostInc, &Args, !fCallSelf /* wait */); 407 407 #else /* older kernels */ 408 rc = smp_call_function(rtMpLinuxOnPairWrapper, &Args, 0 /* retry */, 0/* wait */);408 rc = smp_call_function(rtMpLinuxOnPairWrapper, &Args, 0 /* retry */, !fCallSelf /* wait */); 409 409 #endif /* older kernels */ 410 410 Assert(rc == 0); 411 411 412 413 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)414 412 /* Call ourselves if necessary and wait for the other party to be done. */ 415 413 if (fCallSelf) … … 425 423 } 426 424 } 427 #endif428 425 429 426 Assert(Args.cHits <= 2);
Note:
See TracChangeset
for help on using the changeset viewer.