Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[DVFS] Move plugin::HostDvfs to plugin::dvfs::HostDvfs
[simgrid.git] / src / surf / plugins / host_dvfs.cpp
index 7f20af0..7df4784 100644 (file)
@@ -88,7 +88,7 @@ public:
     // FIXME I don't like that we multiply with the getCoreCount() just here...
     if (load*host->getCoreCount() > freq_up_threshold) {
       host->setPstate(0); /* Run at max. performance! */
-      XBT_INFO("Changed to pstate %f", 0.0);
+      XBT_INFO("Load: %f > threshold: %f --> changed to pstate %i", load * host->getCoreCount(), freq_up_threshold, 0);
     } else {
       /* The actual implementation uses a formula here: (See Kernel file cpufreq_ondemand.c:158)
        *
@@ -139,7 +139,6 @@ public:
     }
   }
 };
-}
 
 class HostDvfs {
 public:
@@ -156,8 +155,9 @@ HostDvfs::HostDvfs(simgrid::s4u::Host* ptr) {}
 HostDvfs::~HostDvfs() = default;
 }
 }
+}
 
-using simgrid::plugin::HostDvfs;
+using simgrid::plugin::dvfs::HostDvfs;
 
 /* **************************** events  callback *************************** */
 static void on_host_added(simgrid::s4u::Host& host)