simgrid::surf::Cpu *cpu = surf_cpu_model_pm->createCpu( h,
host->speed_peak,
- host->pstate,
host->speed_scale, host->speed_trace,
host->core_amount,
- host->initiallyOn, host->state_trace);
+ host->state_trace);
surf_host_model->createHost(host->id, netcard, cpu, host->properties)->attach(h);
+
+ if (host->pstate != 0)
+ cpu->setPState(host->pstate);
+ if (! host->initiallyOn)
+ cpu->turnOff();
+
simgrid::s4u::Host::onCreation(*h);
if (TRACE_is_enabled() && TRACE_needs_platform())