VirtualBox

Changeset 40741 in vbox for trunk/src


Ignore:
Timestamp:
Apr 2, 2012 12:12:18 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77219
Message:

SUPDrv.c: Use NIL_RTSPINLOCK and clarification comment.

File:
1 edited

Legend:

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

    r40740 r40741  
    49084908    supdrvGipInit(pDevExt, pGip, HCPhysGip, RTTimeSystemNanoTS(), 1000000000 / u32Interval /*=Hz*/, cCpus);
    49094909
     4910    /* Creating spinlocks can fail (in theory). supdrvGipInit() returns void. */
    49104911    rc = RTSpinlockCreate(&pGip->Spinlock);
    49114912    if (RT_FAILURE(rc))
     
    49834984    {
    49844985        supdrvGipTerm(pDevExt->pGip);
    4985         if (pDevExt->pGip->Spinlock)
     4986        if (pDevExt->pGip->Spinlock != NIL_RTSPINLOCK)
    49864987        {
    49874988            RTSpinlockDestroy(pDevExt->pGip->Spinlock);
     
    54965497    pGip->cPossibleCpus         = RTMpGetCount();
    54975498    pGip->idCpuMax              = RTMpGetMaxCpuId();
    5498     pGip->Spinlock              = NULL;
     5499    pGip->Spinlock              = NIL_RTSPINLOCK;
    54995500    for (i = 0; i < RT_ELEMENTS(pGip->aiCpuFromApicId); i++)
    55005501        pGip->aiCpuFromApicId[i]    = 0;
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