VirtualBox

Ignore:
Timestamp:
Jun 9, 2008 10:11:29 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
31805
Message:

Fixed spinlock release in RTMPEVENT_OFFLINE. No need to use the NoIrq version as both versions better pervent the thread from being migrated to a different cpu!

File:
1 edited

Legend:

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

    r9494 r9527  
    625625        return;
    626626
    627     RTSpinlockAcquireNoInts(hSpinlock, &Tmp);
     627    RTSpinlockAcquire(hSpinlock, &Tmp);
    628628
    629629    /* Is it active? */
     
    649649                    {
    650650                        rtTimerLnxSetState(&pSubTimer->enmState, RTTIMERLNXSTATE_STOPPED); /* we'll recheck it. */
    651                         RTSpinlockReleaseNoInts(hSpinlock, &Tmp);
     651                        RTSpinlockRelease(hSpinlock, &Tmp);
    652652
    653653                        RTMpOnSpecific(idCpu, rtTimerLinuxMpStartOnCpu, pTimer, &Args);
     
    666666                if (rtTimerLnxCmpXchgState(&pSubTimer->enmState, RTTIMERLNXSTATE_MP_STOPPING, RTTIMERLNXSTATE_ACTIVE))
    667667                {
    668                     RTSpinlockAcquireNoInts(hSpinlock, &Tmp);
     668                    RTSpinlockRelease(hSpinlock, &Tmp);
    669669
    670670                    rtTimerLnxStopSubTimer(pSubTimer);
     
    675675    }
    676676
    677     RTSpinlockAcquireNoInts(hSpinlock, &Tmp);
     677    RTSpinlockAcquire(hSpinlock, &Tmp);
    678678}
    679679
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