diff MasterLoop.c @ 41:cf3e9238aeb0

Measure suspend and master times works -- refactored
author Me
date Sat, 11 Sep 2010 04:40:12 -0700
parents 17d20e5cf924
children e3b78148e9de
line diff
     1.1 --- a/MasterLoop.c	Sat Sep 11 03:26:07 2010 -0700
     1.2 +++ b/MasterLoop.c	Sat Sep 11 04:40:12 2010 -0700
     1.3 @@ -102,7 +102,7 @@
     1.4     #ifdef MEAS__TIME_MASTER
     1.5        //Total Master time includes one coreloop time -- just assume the core
     1.6        // loop time is same for Master as for AppVPs, even though it will be
     1.7 -      // smaller due to high predictability of the jumps.
     1.8 +      // smaller due to high predictability of the fixed jmp.
     1.9     saveLowTimeStampCountInto( masterPr->startMasterTSCLow );
    1.10     #endif
    1.11     //========================================================================
    1.12 @@ -166,9 +166,6 @@
    1.13     
    1.14     #ifdef MEAS__TIME_MASTER
    1.15     saveLowTimeStampCountInto( masterPr->endMasterTSCLow );
    1.16 -      int  diff = masterPr->endMasterTSCLow - masterPr->startMasterTSCLow;
    1.17 -      if( diff > 1000000 ) diff = 0;
    1.18 -      addToHist( diff, masterEnv->measMasterHist );
    1.19     #endif
    1.20  
    1.21     asm volatile("movl %0,     %%eax;  \