fix bug due to stillIdle beginIdle change
authorYanhuaSun <sun51@illinois.edu>
Mon, 25 Mar 2013 16:55:06 +0000 (11:55 -0500)
committerYanhuaSun <sun51@illinois.edu>
Mon, 25 Mar 2013 16:55:06 +0000 (11:55 -0500)
src/arch/util/machine-common-core.c

index cc3d055b3ea793ab740e2129a01eac6822438f50..7b246caedb88a5b2353c836f83e42a7212779490 100644 (file)
@@ -1158,8 +1158,10 @@ static CmiIdleState *CmiNotifyGetState(void) {
 }
 
 static void CmiNotifyBeginIdle(CmiIdleState *s) {
-    s->sleepMs=0;
-    s->nIdles=0;
+    if(s!= NULL){
+        s->sleepMs=0;
+        s->nIdles=0;
+    }
     LrtsBeginIdle();
 }
 
@@ -1186,7 +1188,7 @@ static void CmiNotifyStillIdle(CmiIdleState *s) {
     }
     }
 #endif
-    LrtsStillIlde();
+    LrtsStillIdle();
     MACHSTATE1(2,"still idle (%d) end {",CmiMyPe())
 }