X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/160719c0de3bf98d1b4cdeed9ac7d4b28c4dc9bd..c128702f75d1981c4a082ae6e4630f614074ab6e:/src/surf/cpu_ti_private.h diff --git a/src/surf/cpu_ti_private.h b/src/surf/cpu_ti_private.h index e2014f27ad..ba570d9fd5 100644 --- a/src/surf/cpu_ti_private.h +++ b/src/surf/cpu_ti_private.h @@ -1,7 +1,6 @@ -/* $Id$ */ - -/* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */ +/* Copyright (c) 2009-2010, 2013. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -38,15 +37,17 @@ typedef struct surf_cpu_ti_tgmr { typedef struct cpu_ti { s_surf_resource_t generic_resource; /*< Structure with generic data. Needed at begin to interate with SURF */ double power_peak; /*< CPU power peak */ + int pstate; double power_scale; /*< Percentage of CPU disponible */ surf_cpu_ti_tgmr_t avail_trace; /*< Structure with data needed to integrate trace file */ e_surf_resource_state_t state_current; /*< CPU current state (ON or OFF) */ tmgr_trace_event_t state_event; /*< trace file with states events (ON or OFF) */ - tmgr_trace_event_t power_event; /*< trace file with availabitly events */ + tmgr_trace_event_t power_event; /*< trace file with availability events */ xbt_swag_t action_set; /*< set with all actions running on cpu */ s_xbt_swag_hookup_t modified_cpu_hookup; /*< hookup to swag that indicacates whether share resources must be recalculated or not */ double sum_priority; /*< the sum of actions' priority that are running on cpu */ double last_update; /*< last update of actions' remaining amount done */ + double current_frequency; } s_cpu_ti_t, *cpu_ti_t; typedef struct surf_action_ti { @@ -63,4 +64,4 @@ typedef struct surf_action_ti { #define ACTION_GET_CPU(action) ((cpu_ti_t)((surf_action_cpu_ti_t)action)->cpu) -#endif /* _SURF_CPU_TI_PRIVATE_H */ +#endif /* _SURF_CPU_TI_PRIVATE_H */