VirtualBox

Changeset 54476 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Feb 25, 2015 10:16:13 AM (10 years ago)
Author:
vboxsync
Message:

IPRT: fix for Linux 2.6.27

File:
1 edited

Legend:

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

    r54446 r54476  
    388388        Args.cHits   = 0;
    389389
    390 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
     390#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28)
    391391        cpumask_clear(&DstCpuMask);
    392392        cpumask_set_cpu(idCpu1, &DstCpuMask);
    393393        cpumask_set_cpu(idCpu2, &DstCpuMask);
     394#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
     395        cpus_clear(DstCpuMask);
     396        cpu_set(idCpu1, DstCpuMask);
     397        cpu_set(idCpu2, DstCpuMask);
    394398#endif
    395399
     
    400404        rc = smp_call_function_many(&DstCpuMask, rtmpLinuxWrapperPostInc, &Args, !fCallSelf /* wait */);
    401405#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
    402         rc = smp_call_function_mask(&DstCpuMask, rtmpLinuxWrapperPostInc, &Args, !fCallSelf /* wait */);
     406        rc = smp_call_function_mask(DstCpuMask, rtmpLinuxWrapperPostInc, &Args, !fCallSelf /* wait */);
    403407#else /* older kernels */
    404408        rc = smp_call_function(rtMpLinuxOnPairWrapper, &Args, 0 /* retry */, 0 /* wait */);
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