X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0b9803aff2b8893bed56c21012d86d0a19b186a0..a10acf1eeceb5945d636e9210f2e0d39b235d49b:/src/surf/plugins/host_energy.cpp diff --git a/src/surf/plugins/host_energy.cpp b/src/surf/plugins/host_energy.cpp index e3e4977249..08ab4df26f 100644 --- a/src/surf/plugins/host_energy.cpp +++ b/src/surf/plugins/host_energy.cpp @@ -3,11 +3,11 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include #include "simgrid/plugins/energy.h" #include "simgrid/simix.hpp" #include "src/plugins/vm/VirtualMachineImpl.hpp" #include "src/surf/cpu_interface.hpp" +#include #include /** @addtogroup SURF_plugin_energy @@ -326,26 +326,6 @@ static void onSimulationEnd() total_energy, used_hosts_energy, total_energy - used_hosts_energy); } -static int monitor_DVFS(int argc, char **argv); -static int monitor_DVFS(int argc, char **argv) -{ - while (1) { - MSG_process_sleep(5); - } - - return 0; -} - -static void onPlatformCreated() -{ - sg_host_t* host_list = sg_host_list(); - int host_count = sg_host_count(); - for (int i = 0; i < host_count; i++) { - MSG_process_create("dvfs", &monitor_DVFS, NULL, host_list[i]); - XBT_INFO("Created new MSG processes!"); - } -} - /* **************************** Public interface *************************** */ SG_BEGIN_DECL() @@ -364,7 +344,6 @@ void sg_host_energy_plugin_init() simgrid::s4u::Host::onStateChange.connect(&onHostChange); simgrid::s4u::Host::onSpeedChange.connect(&onHostChange); simgrid::s4u::Host::onDestruction.connect(&onHostDestruction); - simgrid::s4u::onPlatformCreated.connect(&onPlatformCreated); simgrid::s4u::onSimulationEnd.connect(&onSimulationEnd); simgrid::surf::CpuAction::onStateChange.connect(&onActionStateChange); }