X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0ffc37686edcc803601f76ab51fdfed5fc2f241..ef70fe0e745f7125accbcc1c076c2ef082bc3f98:/src/surf/cpu.hpp diff --git a/src/surf/cpu.hpp b/src/surf/cpu.hpp index b7c5e78d03..669578a9bf 100644 --- a/src/surf/cpu.hpp +++ b/src/surf/cpu.hpp @@ -56,8 +56,8 @@ public: void addTraces(void); double m_powerPeak; /*< CPU power peak */ double m_powerScale; /*< Percentage of CPU disponible */ -protected: int m_core; +protected: //virtual boost::shared_ptr execute(double size) = 0; //virtual boost::shared_ptr sleep(double duration) = 0; @@ -67,7 +67,8 @@ class CpuLmm : public ResourceLmm, public Cpu { public: CpuLmm(){}; CpuLmm(CpuModelPtr model, const char* name, xbt_dict_t properties) : ResourceLmm(), Cpu(model, name, properties) {}; - + /* Note (hypervisor): */ + lmm_constraint_t *p_constraintCore; }; /********** @@ -87,6 +88,9 @@ public: : Action(model, cost, failed), ActionLmm(model, cost, failed), CpuAction(model, cost, failed) {}; void updateRemainingLazy(double now); virtual void updateEnergy()=0; + void setAffinity(CpuLmmPtr cpu, unsigned long mask); + void setBound(double bound); + double m_bound; };