VirtualBox

Ignore:
Timestamp:
Feb 25, 2015 11:13:46 AM (10 years ago)
Author:
vboxsync
Message:

SUPDrvGip.cpp: Double the timeout to just below 2ms to make it less likely that we time out before we get anything done on slow machines. Windows doesn't seem to care about how long IPI work takes, fortunately. :-) (Usually the job is done in < 50 us, this is just making sure the worst case scenario works.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp

    r54465 r54480  
    870870        || cNsElapsed < RT_NS_1SEC * 2)
    871871    {
    872         supdrvGipInitSetCpuFreq(pGip, cNsElapsed, cTscTicksElapsed, iTick);
     872        supdrvGipInitSetCpuFreq(pGip, cNsElapsed, cTscTicksElapsed, (uint32_t)iTick);
    873873
    874874        /*
     
    14991499static DECLCALLBACK(void) supdrvGipInitDetermineAsyncTscWorker(RTCPUID idCpu, void *pvUser1, void *pvUser2)
    15001500{
     1501    Assert(RTMpCpuIdToSetIndex(idCpu) == (intptr_t)pvUser2);
    15011502    ASMAtomicWriteU64((uint64_t volatile *)pvUser1, ASMReadTSC());
    15021503}
     
    15361537        {
    15371538            uint64_t CurTsc;
    1538             rc = RTMpOnSpecific(RTMpCpuIdFromSetIndex(iCpu), supdrvGipInitDetermineAsyncTscWorker, &CurTsc, NULL);
     1539            rc = RTMpOnSpecific(RTMpCpuIdFromSetIndex(iCpu), supdrvGipInitDetermineAsyncTscWorker,
     1540                                &CurTsc, (void *)(uintptr_t)iCpu);
    15391541            if (RT_SUCCESS(rc))
    15401542            {
     
    38603862            pArgs->pSyncMaster  = NULL;
    38613863            pArgs->pSyncWorker  = NULL;
    3862             pArgs->cMaxTscTicks = ASMAtomicReadU64(&pGip->u64CpuHz) / 1024; /* 976 us */
     3864            pArgs->cMaxTscTicks = ASMAtomicReadU64(&pGip->u64CpuHz) / 512; /* 1953 us */
    38633865
    38643866#ifdef GIP_TSC_DELTA_METHOD_1
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