VirtualBox

Changeset 30050 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jun 7, 2010 7:11:15 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62405
Message:

VMM: Removed 4 unused functions.

Location:
trunk/src/VBox/VMM
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/EM.cpp

    r29329 r30050  
    16331633}
    16341634
    1635 /**
    1636  * Release the IOM lock if owned by the current VCPU
    1637  *
    1638  * @param   pVM         The VM to operate on.
    1639  */
    1640 VMMR3DECL(void) EMR3ReleaseOwnedLocks(PVM pVM)
    1641 {
    1642     while (PDMCritSectIsOwner(&pVM->em.s.CritSectREM))
    1643         PDMCritSectLeave(&pVM->em.s.CritSectREM);
    1644 }
    1645 
    16461635
    16471636/**
  • trunk/src/VBox/VMM/IOM.cpp

    r29436 r30050  
    17001700
    17011701/**
    1702  * Release the IOM lock if owned by the current VCPU
    1703  *
    1704  * @param   pVM         The VM to operate on.
    1705  */
    1706 VMMR3DECL(void) IOMR3ReleaseOwnedLocks(PVM pVM)
    1707 {
    1708     while (PDMCritSectIsOwner(&pVM->iom.s.EmtLock))
    1709         PDMCritSectLeave(&pVM->iom.s.EmtLock);
    1710 }
    1711 
    1712 
    1713 /**
    17141702 * For TM only!
    17151703 *
  • trunk/src/VBox/VMM/MMHyper.cpp

    r28800 r30050  
    12241224}
    12251225
    1226 /**
    1227  * Release the MM hypervisor heap lock if owned by the current VCPU
    1228  *
    1229  * @param   pVM         The VM to operate on.
    1230  */
    1231 VMMR3DECL(void) MMR3ReleaseOwnedLocks(PVM pVM)
    1232 {
    1233     PMMHYPERHEAP pHeap = pVM->mm.s.CTX_SUFF(pHyperHeap);
    1234 
    1235     while (pHeap && PDMCritSectIsOwner(&pHeap->Lock))
    1236         PDMCritSectLeave(&pHeap->Lock);
    1237 }
    1238 
    12391226
    12401227/**
  • trunk/src/VBox/VMM/PDM.cpp

    r28801 r30050  
    21182118}
    21192119
    2120 /**
    2121  * Release the PDM lock if owned by the current VCPU
    2122  *
    2123  * @param   pVM         The VM to operate on.
    2124  */
    2125 VMMR3DECL(void) PDMR3ReleaseOwnedLocks(PVM pVM)
    2126 {
    2127     while (PDMCritSectIsOwner(&pVM->pdm.s.CritSect))
    2128         PDMCritSectLeave(&pVM->pdm.s.CritSect);
    2129 }
  • trunk/src/VBox/VMM/PGM.cpp

    r29646 r30050  
    33503350}
    33513351
    3352 /**
    3353  * Release the pgm lock if owned by the current VCPU
    3354  *
    3355  * @param   pVM         The VM to operate on.
    3356  */
    3357 VMMR3DECL(void) PGMR3ReleaseOwnedLocks(PVM pVM)
    3358 {
    3359     while (PDMCritSectIsOwner(&pVM->pgm.s.CritSect))
    3360         PDMCritSectLeave(&pVM->pgm.s.CritSect);
    3361 }
    33623352
    33633353/**
  • trunk/src/VBox/VMM/VMMGuruMeditation.cpp

    r28800 r30050  
    55
    66/*
    7  * Copyright (C) 2006-2007 Oracle Corporation
     7 * Copyright (C) 2006-2010 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    210210
    211211    /* Release owned locks to make sure other VCPUs can continue in case they were waiting for one. */
    212 #if 1
    213212    PDMR3CritSectLeaveAll(pVM);
    214 #else
    215     MMR3ReleaseOwnedLocks(pVM);
    216     PGMR3ReleaseOwnedLocks(pVM);
    217     PDMR3ReleaseOwnedLocks(pVM);
    218     IOMR3ReleaseOwnedLocks(pVM);
    219     EMR3ReleaseOwnedLocks(pVM);
    220 #endif
    221213
    222214    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette