X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c93f053fe60b1880db916d2dc83ad03b0bb436a7..5410c0dedd6e07e55c0a74a0664d1f8a73d69c1e:/src/surf/cpu_interface.hpp diff --git a/src/surf/cpu_interface.hpp b/src/surf/cpu_interface.hpp index 79bc81dc71..e28d4d3913 100644 --- a/src/surf/cpu_interface.hpp +++ b/src/surf/cpu_interface.hpp @@ -177,15 +177,20 @@ public: virtual int getPstate()=0; void setState(e_surf_resource_state_t state); + void plug(simgrid::Host* host); void addTraces(void); int m_core = 1; /* Amount of cores */ double m_speedPeak; /*< CPU speed peak, ie max value */ double m_speedScale; /*< Percentage of CPU available according to the trace, in [O,1] */ + simgrid::Host* m_host = nullptr; + + simgrid::Host* getHost() { return m_host; } /* Note (hypervisor): */ lmm_constraint_t *p_constraintCore=NULL; void **p_constraintCoreId=NULL; + }; /**********