VirtualBox

Changeset 10864 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jul 24, 2008 5:44:32 PM (17 years ago)
Author:
vboxsync
Message:

Update for future Linux 2.6.27.

File:
1 edited

Legend:

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

    r9429 r10864  
    194194    Args.cHits = 0;
    195195
     196#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
     197    rc = on_each_cpu(rtmpLinuxWrapper, &Args, 1 /* wait */);
    196198#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
    197199    rc = on_each_cpu(rtmpLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */);
    198 
    199200#else /* older kernels */
    200 
    201201# ifdef preempt_disable
    202202    preempt_disable();
     
    229229    preempt_disable();
    230230# endif
     231#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
     232    rc = smp_call_function(rtmpLinuxWrapper, &Args, 1 /* wait */);
     233#else /* older kernels */
    231234    rc = smp_call_function(rtmpLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */);
     235#endif /* older kernels */
    232236# ifdef preempt_enable
    233237    preempt_enable();
     
    281285        if (RTMpIsCpuOnline(idCpu))
    282286        {
    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)
    284290            rc = smp_call_function_single(idCpu, rtmpLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */);
    285 #else
     291#else /* older kernels */
    286292            rc = smp_call_function(rtmpOnSpecificLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */);
    287 #endif
     293#endif /* older kernels */
    288294            Assert(rc == 0);
    289295            rc = Args.cHits ? VINF_SUCCESS : VERR_CPU_OFFLINE;
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