VirtualBox

Changeset 54663 in vbox for trunk/src


Ignore:
Timestamp:
Mar 6, 2015 10:14:06 AM (10 years ago)
Author:
vboxsync
Message:

IPRT: RTMpOnPair fix for Linux < 2.6.27

File:
1 edited

Legend:

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

    r54476 r54663  
    377377#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
    378378        cpumask_t   DstCpuMask;
     379#endif
    379380        RTCPUID     idCpuSelf = RTMpCpuId();
    380381        bool const  fCallSelf = idCpuSelf == idCpu1 || idCpuSelf == idCpu2;
    381 #endif
    382382        RTMPARGS    Args;
    383383        Args.pfnWorker = pfnWorker;
     
    406406        rc = smp_call_function_mask(DstCpuMask, rtmpLinuxWrapperPostInc, &Args, !fCallSelf /* wait */);
    407407#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 */);
    409409#endif /* older kernels */
    410410        Assert(rc == 0);
    411411
    412 
    413 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
    414412        /* Call ourselves if necessary and wait for the other party to be done. */
    415413        if (fCallSelf)
     
    425423            }
    426424        }
    427 #endif
    428425
    429426        Assert(Args.cHits <= 2);
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