Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bypass simix in simcall to surf::Cpu::setPState
[simgrid.git] / src / simix / smx_host.cpp
index 17ae79b..34d253e 100644 (file)
@@ -46,7 +46,7 @@ void SIMIX_host_on(sg_host_t h)
 
   if (h->isOff()) {
     simgrid::surf::Host* surf_host = h->extension<simgrid::surf::Host>();
-    surf_host_turn_on(surf_host);
+    surf_host->turnOn();
 
     unsigned int cpt;
     smx_process_arg_t arg;
@@ -100,7 +100,7 @@ void SIMIX_host_off(sg_host_t h, smx_process_t issuer)
 
   if (h->isOn()) {
     simgrid::surf::Host* surf_host = h->extension<simgrid::surf::Host>();
-    surf_host_turn_off(surf_host);
+    surf_host->turnOff();
 
     /* Clean Simulator data */
     if (xbt_swag_size(host->process_list) != 0) {
@@ -186,9 +186,6 @@ double SIMIX_host_get_power_peak_at(sg_host_t host, int pstate_index) {
          return surf_host_get_power_peak_at(host, pstate_index);
 }
 
-void SIMIX_host_set_pstate(sg_host_t host, int pstate_index) {
-         surf_host_set_pstate(host, pstate_index);
-}
 double SIMIX_host_get_wattmin_at(sg_host_t host,int pstate) {
          return surf_host_get_wattmin_at(host,pstate);
 }