Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill two more useless calls
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 10 Jan 2016 00:06:55 +0000 (01:06 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 10 Jan 2016 00:06:55 +0000 (01:06 +0100)
src/simgrid/host.cpp
src/simix/smx_host.cpp
src/simix/smx_host_private.h

index 61de103..b3f5bd6 100644 (file)
@@ -259,15 +259,17 @@ void Host::setPstate(int pstate_index)
 /** Get the amount of watt dissipated at the given pstate when the host is idling */
 double Host::getWattMinAt(int pstate)
 {
-  return simgrid::simix::kernel(
-    std::bind(SIMIX_host_get_wattmin_at, this, pstate));
+  return simgrid::simix::kernel(std::bind(
+      surf_host_get_wattmin_at, this, pstate
+  ));
 }
 
 /** Get the amount of watt dissipated at the given pstate when the host burns CPU at 100% */
 double Host::getWattMaxAt(int pstate)
 {
-  return simgrid::simix::kernel(
-    std::bind(SIMIX_host_get_wattmax_at, this, pstate));
+  return simgrid::simix::kernel(std::bind(
+      surf_host_get_wattmax_at, this, pstate
+  ));
 }
 
 void Host::getParams(vm_params_t params)
index 4a5bf18..91b7ef9 100644 (file)
@@ -186,13 +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);
 }
 
-double SIMIX_host_get_wattmin_at(sg_host_t host,int pstate) {
-         return surf_host_get_wattmin_at(host,pstate);
-}
-double SIMIX_host_get_wattmax_at(sg_host_t host,int pstate) {
-         return surf_host_get_wattmax_at(host,pstate);
-}
-
 void _SIMIX_host_free_process_arg(void *data)
 {
   smx_process_arg_t arg = *(smx_process_arg_t*)data;
index 5d25ef4..0709849 100644 (file)
@@ -41,8 +41,6 @@ XBT_PRIVATE xbt_dict_t SIMIX_host_get_properties(sg_host_t host);
 XBT_PRIVATE xbt_swag_t SIMIX_host_get_process_list(sg_host_t host);
 XBT_PRIVATE double SIMIX_host_get_current_power_peak(sg_host_t host);
 XBT_PRIVATE double SIMIX_host_get_power_peak_at(sg_host_t host, int pstate_index);
-XBT_PRIVATE double SIMIX_host_get_wattmin_at(sg_host_t host,int pstate);
-XBT_PRIVATE double SIMIX_host_get_wattmax_at(sg_host_t host,int pstate);
 XBT_PRIVATE smx_synchro_t SIMIX_process_execute(smx_process_t issuer, const char *name,
     double flops_amount, double priority, double bound, unsigned long affinity_mask);
 XBT_PRIVATE smx_synchro_t SIMIX_process_parallel_execute(const char *name,