Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill 2 useless calls
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 9 Jan 2016 23:12:54 +0000 (00:12 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 9 Jan 2016 23:12:54 +0000 (00:12 +0100)
src/include/surf/surf.h
src/simgrid/host.cpp
src/surf/surf_c_bindings.cpp

index b7d707e..25e8a47 100644 (file)
@@ -450,17 +450,7 @@ XBT_PUBLIC(double) surf_host_get_current_power_peak(sg_host_t host);
  */
 XBT_PUBLIC(double) surf_host_get_power_peak_at(sg_host_t host, int pstate_index);
 
-/**
- * @brief [brief description]
- * @details [long description]
- *
- * @param host [description]
- * @return [description]
- */
-XBT_PUBLIC(int) surf_host_get_nb_pstates(sg_host_t host);
-
 XBT_PUBLIC(void) surf_host_set_pstate(sg_host_t host, int pstate_index);
-XBT_PUBLIC(int) surf_host_get_pstate(sg_host_t host);
 XBT_PUBLIC(double) surf_host_get_wattmin_at(sg_host_t resource, int pstate);
 XBT_PUBLIC(double) surf_host_get_wattmax_at(sg_host_t resource, int pstate);
 
index 38d3e17..c5c4823 100644 (file)
@@ -154,7 +154,7 @@ double sg_host_get_consumed_energy(sg_host_t host) {
  *  See also @ref SURF_plugin_energy.
  */
 int sg_host_get_nb_pstates(sg_host_t host) {
-       return surf_host_get_nb_pstates(host);
+  return host->p_cpu->getNbPStates();
 }
 
 /** @brief Gets the pstate at which that host currently runs.
@@ -162,7 +162,7 @@ int sg_host_get_nb_pstates(sg_host_t host) {
  *  See also @ref SURF_plugin_energy.
  */
 int sg_host_get_pstate(sg_host_t host) {
-       return surf_host_get_pstate(host);
+       return host->p_cpu->getPState();
 }
 
 namespace simgrid {
index 75f095f..a683814 100644 (file)
@@ -267,16 +267,9 @@ double surf_host_get_power_peak_at(sg_host_t host, int pstate_index){
   return host->p_cpu->getPowerPeakAt(pstate_index);
 }
 
-int surf_host_get_nb_pstates(sg_host_t host){
-  return host->p_cpu->getNbPStates();
-}
-
 void surf_host_set_pstate(sg_host_t host, int pstate_index){
   host->p_cpu->setPState(pstate_index);
 }
-int surf_host_get_pstate(sg_host_t host){
-  return host->p_cpu->getPState();
-}
 
 using simgrid::energy::HostEnergy;
 using simgrid::energy::surf_energy;