Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Removed a bunch of unused variables. Mostly some xbt_error_t errcode that
[simgrid.git] / src / surf / cpu_private.h
index 7315b42..7897a9d 100644 (file)
@@ -6,14 +6,25 @@
 #ifndef _SURF_CPU_PRIVATE_H
 #define _SURF_CPU_PRIVATE_H
 
-#include "surf/surf.h"
-#include "surf/surf_private.h"
+#include "surf_private.h"
 
 typedef struct surf_action_cpu {
   s_surf_action_t generic_action;
   lmm_variable_t variable;
 } s_surf_action_cpu_t, *surf_action_cpu_t;
 
-surf_cpu_resource_t surf_cpu_resource_init(void);
+typedef struct cpu {
+  surf_resource_t resource;   /* Any such object, added in a trace
+                                should start by this field!!! */
+  const char *name;
+  xbt_maxmin_float_t power_scale;
+  xbt_maxmin_float_t current_power;
+/*   tmgr_trace_t power_trace; */
+  tmgr_trace_event_t power_event;
+  e_surf_cpu_state_t current_state;
+/*   tmgr_trace_t state_trace; */
+  tmgr_trace_event_t state_event;
+  lmm_constraint_t constraint;
+} s_cpu_t, *cpu_t;
 
-#endif                         /* _SURF_SURF_PRIVATE_H */
+#endif                         /* _SURF_CPU_PRIVATE_H */