X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cee8b7d98f1c3b6738ad5f0b20de7bed9ba08d5a..b8ceec9dcbf950163eb1328573830d360ace02ee:/src/plugins/host_dvfs.cpp diff --git a/src/plugins/host_dvfs.cpp b/src/plugins/host_dvfs.cpp index 0404ae069f..9245029d21 100644 --- a/src/plugins/host_dvfs.cpp +++ b/src/plugins/host_dvfs.cpp @@ -20,6 +20,7 @@ #endif #include +#include SIMGRID_REGISTER_PLUGIN(host_dvfs, "Dvfs support", &sg_host_dvfs_plugin_init) @@ -43,7 +44,7 @@ static simgrid::config::Flag cfg_governor("plugin/dvfs/governor", {"performance", "TODO: Doc"}, {"powersave", "TODO: Doc"}, }), - [](const std::string& val) { + [](std::string_view val) { if (val != "performance") sg_host_dvfs_plugin_init(); }); @@ -65,10 +66,7 @@ static simgrid::config::Flag XBT_LOG_NEW_DEFAULT_SUBCATEGORY(host_dvfs, kernel, "Logging specific to the HostDvfs plugin"); -namespace simgrid { -namespace plugin { - -namespace dvfs { +namespace simgrid::plugin::dvfs { /** * Add this to your host tag: @@ -360,9 +358,7 @@ public: void update() override {} }; #endif -} // namespace dvfs -} // namespace plugin -} // namespace simgrid +} // namespace simgrid::plugin::dvfs /* **************************** events callback *************************** */ static void on_host_added(simgrid::s4u::Host& host)