Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Warning removal: switched the next_pid variable in MSG_process_create_with_environmen...
[simgrid.git] / src / surf / cpu_interface.hpp
index 2cb2d53..0ab1e48 100644 (file)
@@ -74,8 +74,6 @@ public:
 */
 XBT_PUBLIC_CLASS Cpu : public simgrid::surf::Resource {
 public:
-  Cpu();
-
   /**
    * @brief Cpu constructor
    *
@@ -107,13 +105,6 @@ public:
          int core, double speedPeak, double speedScale,
          e_surf_resource_state_t stateInitial);
 
-  Cpu(simgrid::surf::Model *model, simgrid::Host *host, lmm_constraint_t constraint,
-         xbt_dynar_t speedPeakList, int pstate,
-         int core, double speedPeak, double speedScale);
-  Cpu(simgrid::surf::Model *model, simgrid::Host *host,
-         xbt_dynar_t speedPeakList, int pstate,
-         int core, double speedPeak, double speedScale);
-
   ~Cpu();
 
   /**
@@ -138,6 +129,11 @@ public:
   /** @brief Get the speed, accounting for the trace load and provided process load instead of the real current one */
   virtual double getSpeed(double load);
 
+protected:
+  /** @brief Take speed changes (either load or max) into account */
+  virtual void onSpeedChange();
+
+public:
   /** @brief Get the available speed of the current Cpu */
   virtual double getAvailableSpeed();