VirtualBox

Changeset 808 in vbox for trunk


Ignore:
Timestamp:
Feb 9, 2007 12:34:55 PM (18 years ago)
Author:
vboxsync
Message:

Irq check update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r805 r808  
    19711971static int pcnetAsyncTransmit(PCNetState *pData)
    19721972{
    1973 #ifdef VBOX_WITH_STATISTICS
    19741973    unsigned cFlushIrq = 0;
    1975 #endif
    19761974
    19771975    Assert(PDMCritSectIsOwner(&pData->CritSect));
     
    21552153            ||  tmd.tmd1.err)
    21562154        {
    2157 #ifdef VBOX_WITH_STATISTICS
    21582155            cFlushIrq++;
    2159 #endif
    21602156            pData->aCSR[0] |= 0x0200;    /* set TINT */
    21612157        }
     
    21652161    } while (CSR_TXON(pData));          /* transfer on */
    21662162
    2167 #ifdef VBOX_WITH_STATISTICS
    21682163    if (cFlushIrq)
     2164    {
    21692165        STAM_COUNTER_INC(&pData->aStatXmitFlush[RT_MIN(cFlushIrq, ELEMENTS(pData->aStatXmitFlush)) - 1]);
    2170 #endif
    2171     pcnetUpdateIrq(pData);
     2166        pcnetUpdateIrq(pData);
     2167    }
     2168
    21722169    STAM_PROFILE_ADV_STOP(&pData->StatTransmit, a);
    21732170
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