-Cpu::Cpu(Model *model, simgrid::Host *host, lmm_constraint_t constraint,
- xbt_dynar_t speedPeakList, int pstate,
- int core, double speedPeak, double speedScale)
-: Cpu(model, host, constraint, speedPeakList, pstate, core, speedPeak, speedScale, SURF_RESOURCE_ON)
-{
- xbt_die("FIXME: DEADCODE");
-}
-
-Cpu::Cpu(Model *model, simgrid::Host *host,
- xbt_dynar_t speedPeakList, int pstate,
- int core, double speedPeak, double speedScale)
-: Cpu(model, host, speedPeakList, pstate, core, speedPeak, speedScale, SURF_RESOURCE_ON)
-{
- xbt_die("FIXME: DEADCODE");
-}
-
-Cpu::~Cpu()
-{
- if (p_constraintCoreId){
- for (int i = 0; i < m_core; i++) {
- xbt_free(p_constraintCoreId[i]);
- }
- xbt_free(p_constraintCore);
- }
- if (p_constraintCoreId)
- xbt_free(p_constraintCoreId);
-}
-
-double Cpu::getCurrentPowerPeak()
-{
- return m_speedPeak;
-}