VirtualBox

Changeset 53798 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Jan 14, 2015 11:52:58 AM (10 years ago)
Author:
vboxsync
Message:

Use PDMDevHlpGetCurrentCpuId.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r53796 r53798  
    3737# include <VBox/vmm/vmapi.h>
    3838# include <VBox/vmm/vmcpuset.h>
    39 # include <VBox/vmm/vm.h> /* Need VMCPU::idCpu. */
    4039#endif
    4140#include <VBox/sup.h>
     
    802801            STAM_REL_PROFILE_START(&pSVGAState->StatBusyDelayEmts, EmtDelay);
    803802            PVM         pVM   = PDMDevHlpGetVM(pThis->pDevInsR3);
    804             VMCPUID     idCpu = PDMDevHlpGetVMCPU(pThis->pDevInsR3)->idCpu; /** @todo add a separate dev helper for this. */
     803            VMCPUID     idCpu = PDMDevHlpGetCurrentCpuId(pThis->pDevInsR3);
    805804            VMCPUSET_ATOMIC_ADD(&pSVGAState->BusyDelayedEmts, idCpu);
    806805            ASMAtomicIncU32(&pSVGAState->cBusyDelayedEmts);
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