Changeset 54379 in vbox
- Timestamp:
- Feb 23, 2015 11:04:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
r54377 r54379 884 884 int64_t iStartTscDelta = iStartGipCpu < pGip->cCpus ? pGip->aCPUs[iStartGipCpu].i64TSCDelta : INT64_MAX; 885 885 int64_t iStopTscDelta = iStopGipCpu < pGip->cCpus ? pGip->aCPUs[iStopGipCpu].i64TSCDelta : INT64_MAX; 886 if (RT_LIKELY(iStartTscDelta != INT64_MAX && iStop GipCpu!= INT64_MAX))886 if (RT_LIKELY(iStartTscDelta != INT64_MAX && iStopTscDelta != INT64_MAX)) 887 887 { 888 888 if (pGip->enmUseTscDelta > SUPGIPUSETSCDELTA_PRACTICALLY_ZERO) … … 1172 1172 int64_t iStartTscDelta = iStartGipCpu < pGip->cCpus ? pGip->aCPUs[iStartGipCpu].i64TSCDelta : INT64_MAX; 1173 1173 int64_t iStopTscDelta = iStopGipCpu < pGip->cCpus ? pGip->aCPUs[iStopGipCpu].i64TSCDelta : INT64_MAX; 1174 if (RT_LIKELY(iStartTscDelta != INT64_MAX && iStop GipCpu!= INT64_MAX))1174 if (RT_LIKELY(iStartTscDelta != INT64_MAX && iStopTscDelta != INT64_MAX)) 1175 1175 { 1176 1176 if (pGip->enmUseTscDelta > SUPGIPUSETSCDELTA_PRACTICALLY_ZERO) … … 2653 2653 */ 2654 2654 if (fIsMaster) 2655 { 2655 2656 if (RT_LIKELY(ASMAtomicCmpXchgU32(&pOtherSync->uSyncVar, GIP_TSC_DELTA_SYNC2_STEADY, GIP_TSC_DELTA_SYNC2_READY))) 2656 2657 { /* likely*/ } 2657 2658 else 2658 2659 return false; 2660 } 2659 2661 2660 2662 /* … … 2710 2712 */ 2711 2713 if (!fIsMaster) 2714 { 2712 2715 if (RT_LIKELY(ASMAtomicCmpXchgU32(&pOtherSync->uSyncVar, GIP_TSC_DELTA_SYNC2_STEADY, GIP_TSC_DELTA_SYNC2_READY))) 2713 2716 { /* likely */ } … … 2717 2720 return false; 2718 2721 } 2722 } 2719 2723 2720 2724 /* … … 2722 2726 */ 2723 2727 if (fIsMaster) 2728 { 2724 2729 if (RT_LIKELY(ASMAtomicCmpXchgU32(&pOtherSync->uSyncVar, GIP_TSC_DELTA_SYNC2_GO, GIP_TSC_DELTA_SYNC2_STEADY))) 2725 2730 { /* likely */ } … … 2729 2734 return false; 2730 2735 } 2736 } 2731 2737 2732 2738 /* … … 2755 2761 */ 2756 2762 if (!fIsMaster) 2763 { 2757 2764 if (RT_LIKELY(ASMAtomicCmpXchgU32(&pOtherSync->uSyncVar, GIP_TSC_DELTA_SYNC2_GO, GIP_TSC_DELTA_SYNC2_STEADY))) 2758 2765 { /* likely */ } … … 2762 2769 return false; 2763 2770 } 2771 } 2764 2772 2765 2773 /* … … 3535 3543 rc = RTSemMutexRequest(pDevExt->mtxTscDelta, RT_INDEFINITE_WAIT); 3536 3544 #else 3537 rc = RTSemFastMutexRequest(pDevExt->mtxTscDelta , RT_INDEFINITE_WAIT);3545 rc = RTSemFastMutexRequest(pDevExt->mtxTscDelta); 3538 3546 #endif 3539 3547 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.