VirtualBox

Changeset 54469 in vbox


Ignore:
Timestamp:
Feb 24, 2015 9:33:43 PM (10 years ago)
Author:
vboxsync
Message:

mp-r0drv-solaris: move stuff that doesn't need preemption to be disabled outside preemption disabled block.

File:
1 edited

Legend:

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

    r54468 r54469  
    231231    Args.cHits = 0;
    232232
    233     RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
    234     RTThreadPreemptDisable(&PreemptState);
    235 
    236233    RTSOLCPUSET CpuSet;
    237234    for (int i = 0; i < IPRT_SOL_SET_WORDS; i++)
    238235        CpuSet.auCpus[i] = (ulong_t)-1L;
     236
     237    RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
     238    RTThreadPreemptDisable(&PreemptState);
    239239
    240240    rtMpSolCrossCall(&CpuSet, rtMpSolOnAllCpuWrapper, &Args);
     
    424424    Args.cHits = 0;
    425425
    426     RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
    427     RTThreadPreemptDisable(&PreemptState);
    428 
    429426    RTSOLCPUSET CpuSet;
    430427    for (int i = 0; i < IPRT_SOL_SET_WORDS; i++)
     
    432429    BT_SET(CpuSet.auCpus, idCpu);
    433430
     431    RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
     432    RTThreadPreemptDisable(&PreemptState);
     433
    434434    rtMpSolCrossCall(&CpuSet, rtMpSolOnSpecificCpuWrapper, &Args);
    435435
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