Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New: MSG_host_get_pstate() and smpi_get_host_pstate()
[simgrid.git] / src / surf / workstation_interface.cpp
index 6b021c5..fc2bcde 100644 (file)
@@ -155,9 +155,13 @@ int Workstation::getNbPstates()
   return p_cpu->getNbPstates();
 }
 
-void Workstation::setPowerPeakAt(int pstate_index)
+void Workstation::setPstate(int pstate_index)
 {
-       p_cpu->setPowerPeakAt(pstate_index);
+       p_cpu->setPstate(pstate_index);
+}
+int Workstation::getPstate()
+{
+       return p_cpu->getPstate();
 }
 
 xbt_dict_t Workstation::getProperties()