VirtualBox

Changeset 59113 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 14, 2015 11:55:19 AM (9 years ago)
Author:
vboxsync
Message:

DevOHCI: bugref:8125: wakeup the framer thread only if framerate was changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r58170 r59113  
    21852185 * @param   pThis    The OHCI device data.
    21862186 */
    2187 static void ohciFramerateCalcNew(POHCI pThis)
     2187static bool ohciFramerateCalcNew(POHCI pThis)
    21882188{
    21892189    uint32_t uNewFrameRate = pThis->uFrameRate;
     
    22192219        LogFlow(("Frame rate changed from %u to %u\n", pThis->uFrameRate, uNewFrameRate));
    22202220        ohciCalcTimerIntervals(pThis, uNewFrameRate);
    2221     }
     2221        return true;
     2222    }
     2223    return false;
    22222224}
    22232225
     
    26092611    ohciWriteEd(pThis, pUrb->Hci.EdAddr, &Ed);
    26102612
    2611     /* Calculate new frame rate and wakeup the . */
    2612     ohciFramerateCalcNew(pThis);
    2613     RTSemEventMultiSignal(pThis->hSemEventFrame);
     2613    /* Calculate new frame rate and wakeup the framer thread if the rate was chnaged. */
     2614    if (ohciFramerateCalcNew(pThis))
     2615        RTSemEventMultiSignal(pThis->hSemEventFrame);
     2616
    26142617    RTCritSectLeave(&pThis->CritSect);
    26152618}
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