cleanups
authorpmf <pmf@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 31 Jul 2007 19:46:14 +0000 (19:46 +0000)
committerpmf <pmf@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 31 Jul 2007 19:46:14 +0000 (19:46 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2564 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/resourceview/eventhooks.c

index 32631225e0206c78f88e13669d01a5c64273c898..cf4f6893d148cd1da8ec842abc4b518a7fb7d893 100644 (file)
@@ -321,10 +321,7 @@ static void cpu_set_line_color(PropertiesLine *prop_line, LttvCPUState *s)
 {
   GQuark present_state = ((GQuark*)s->mode_stack->data)[s->mode_stack->len-1];
 
-  if(present_state == LTTV_CPU_UNKNOWN) {
-    prop_line->color = drawing_colors_cpu[COL_CPU_UNKNOWN];
-  }
-  else if(present_state == LTTV_CPU_IDLE) {
+  if(present_state == LTTV_CPU_IDLE) {
     prop_line->color = drawing_colors_cpu[COL_CPU_IDLE];
   }
   else if(present_state == LTTV_CPU_BUSY) {
@@ -335,6 +332,8 @@ static void cpu_set_line_color(PropertiesLine *prop_line, LttvCPUState *s)
   }
   else if(present_state == LTTV_CPU_TRAP) {
     prop_line->color = drawing_colors_cpu[COL_CPU_TRAP];
+  } else {
+    prop_line->color = drawing_colors_cpu[COL_CPU_UNKNOWN];
   }
 }
 
@@ -372,14 +371,6 @@ static void irq_set_line_color(PropertiesLine *prop_line, LttvIRQState *s)
 
 
 int before_schedchange_hook(void *hook_data, void *call_data)
-{
-       before_schedchange_hook_cpu(hook_data, call_data);
-//     before_schedchange_hook_irq(hook_data, call_data);
-
-       return 0;
-}
-
-int before_schedchange_hook_cpu(void *hook_data, void *call_data)
 {
   LttvTraceHookByFacility *thf = (LttvTraceHookByFacility*)hook_data;
   EventsRequest *events_request = (EventsRequest*)thf->hook_data;
This page took 0.025621 seconds and 4 git commands to generate.