Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update workstation handling in SimDag. Change the prefix of SimDag functions with...
[simgrid.git] / src / surf / cpu_private.h
1 /*      $Id$     */
2
3 /* Copyright (c) 2004 Arnaud Legrand. All rights reserved.                  */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 #ifndef _SURF_CPU_PRIVATE_H
9 #define _SURF_CPU_PRIVATE_H
10
11 #include "surf_private.h"
12 #include "xbt/dict.h"
13
14 typedef struct surf_action_cpu_Cas01 {
15   s_surf_action_t generic_action;
16   lmm_variable_t variable;
17 } s_surf_action_cpu_Cas01_t, *surf_action_cpu_Cas01_t;
18
19 typedef struct cpu_Cas01 {
20   surf_resource_t resource;     /* Any such object, added in a trace
21                                    should start by this field!!! */
22   char *name;
23   double power_scale;
24   double power_current;
25   tmgr_trace_event_t power_event;
26   e_surf_cpu_state_t state_current;
27   tmgr_trace_event_t state_event;
28   lmm_constraint_t constraint;
29 } s_cpu_Cas01_t, *cpu_Cas01_t;
30
31 extern xbt_dict_t cpu_set;
32
33 #endif                          /* _SURF_CPU_PRIVATE_H */