VirtualBox

Ignore:
Timestamp:
Feb 18, 2015 2:56:16 PM (10 years ago)
Author:
vboxsync
Message:

HostDrivers/Support: Fix recomputing of TSC-deltas for newly online'd CPUs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r54262 r54264  
    71017101    {
    71027102        RTSpinlockAcquire(pDevExt->hTscDeltaSpinlock);
     7103        RTCpuSetAdd(&pDevExt->TscDeltaCpuSet, idCpu);
    71037104        if (   pDevExt->enmTscDeltaState == kSupDrvTscDeltaState_Listening
    71047105            || pDevExt->enmTscDeltaState == kSupDrvTscDeltaState_Measuring)
    71057106        {
    7106             RTCpuSetAdd(&pDevExt->TscDeltaCpuSet, idCpu);
    71077107            pDevExt->enmTscDeltaState = kSupDrvTscDeltaState_WaitAndMeasure;
    71087108        }
     
    83468346                 *        to pass those options to the thread somehow and implement it in the
    83478347                 *        thread. Check if anyone uses/needs fAsync before implementing this. */
     8348                RTSpinlockAcquire(pDevExt->hTscDeltaSpinlock);
    83488349                RTCpuSetAdd(&pDevExt->TscDeltaCpuSet, pGipCpuWorker->idCpu);
    8349                 RTSpinlockAcquire(pDevExt->hTscDeltaSpinlock);
    83508350                if (   pDevExt->enmTscDeltaState == kSupDrvTscDeltaState_Listening
    83518351                    || pDevExt->enmTscDeltaState == kSupDrvTscDeltaState_Measuring)
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