fix a warning
authorSimon Marlow <marlowsd@gmail.com>
Mon, 22 Oct 2012 14:59:06 +0000 (15:59 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 23 Oct 2012 10:13:30 +0000 (11:13 +0100)
rts/Schedule.c

index 8b74a95..d44cf72 100644 (file)
@@ -459,11 +459,11 @@ run_thread:
         // conserve power (see #1623).  Re-enable it here.
         nat prev;
         prev = xchg((P_)&recent_activity, ACTIVITY_YES);
-#ifndef PROFILING
         if (prev == ACTIVITY_DONE_GC) {
+#ifndef PROFILING
             startTimer();
-        }
 #endif
+        }
         break;
     }
     case ACTIVITY_INACTIVE: