VirtualBox

Changeset 54409 in vbox


Ignore:
Timestamp:
Feb 24, 2015 2:07:23 AM (10 years ago)
Author:
vboxsync
Message:

SUPDrvGip.cpp: Use RTMpOnPair.

File:
1 edited

Legend:

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

    r54402 r54409  
    37643764    {
    37653765        /*
    3766          * Initialize data package for the RTMpOnAll callback.
     3766         * Initialize data package for the RTMpOnPair callback.
    37673767         */
    37683768        PSUPDRVGIPTSCDELTARGS pArgs = (PSUPDRVGIPTSCDELTARGS)RTMemAllocZ(sizeof(*pArgs));
     
    37903790            {
    37913791                /*
    3792                  * Fire TSC-read workers on all CPUs but only synchronize between master
    3793                  * and one worker to ease memory contention.
     3792                 * Do the RTMpOnPair call.  We reset i64TSCDelta first so we
     3793                 * and supdrvMeasureTscDeltaCallback can use it as a success check.
    37943794                 */
     3795                /** @todo Store the i64TSCDelta result in pArgs first?   Perhaps deals with
     3796                 *        that when doing the restart loop reorg.  */
    37953797                ASMAtomicWriteS64(&pGipCpuWorker->i64TSCDelta, INT64_MAX);
    3796 
    3797                 /** @todo Add RTMpOnPair and replace this ineffecient broadcast IPI.  */
    3798                 rc = RTMpOnAll(supdrvMeasureTscDeltaCallback, pArgs, NULL);
     3798                rc = RTMpOnPair(pGipCpuMaster->idCpu, pGipCpuWorker->idCpu, RTMPON_F_CONCURRENT_EXEC,
     3799                                supdrvMeasureTscDeltaCallback, pArgs, NULL);
    37993800                if (RT_SUCCESS(rc))
    38003801                {
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