style: [patch 3/22] reduce include dependencies in some headers
Used cppclean to help identify useless includes and removed them. This involved erroneously included headers, but also cases where forward declarations could have been used rather than a full include.
This commit is contained in:
@@ -42,11 +42,13 @@
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
#include "base/statistics.hh"
|
||||
#include "params/MathExprPowerModel.hh"
|
||||
#include "sim/mathexpr.hh"
|
||||
#include "sim/power/power_model.hh"
|
||||
#include "sim/sim_object.hh"
|
||||
|
||||
namespace Stats {
|
||||
class Info;
|
||||
}
|
||||
|
||||
/**
|
||||
* A Equation power model. The power is represented as a combination
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include "base/statistics.hh"
|
||||
#include "params/PowerModel.hh"
|
||||
#include "params/PowerModelState.hh"
|
||||
#include "sim/sim_object.hh"
|
||||
#include "sim/clocked_object.hh"
|
||||
#include "sim/sub_system.hh"
|
||||
|
||||
PowerModelState::PowerModelState(const Params *p)
|
||||
|
||||
@@ -43,9 +43,10 @@
|
||||
#include "base/statistics.hh"
|
||||
#include "params/PowerModel.hh"
|
||||
#include "params/PowerModelState.hh"
|
||||
#include "sim/power/thermal_model.hh"
|
||||
#include "sim/probe/probe.hh"
|
||||
#include "sim/sim_object.hh"
|
||||
|
||||
class SimObject;
|
||||
class ClockedObject;
|
||||
|
||||
/**
|
||||
* A PowerModelState is an abstract class used as interface to get power
|
||||
|
||||
@@ -44,8 +44,11 @@
|
||||
#include "base/statistics.hh"
|
||||
#include "debug/ThermalDomain.hh"
|
||||
#include "params/ThermalDomain.hh"
|
||||
#include "sim/clocked_object.hh"
|
||||
#include "sim/linear_solver.hh"
|
||||
#include "sim/power/thermal_model.hh"
|
||||
#include "sim/sim_object.hh"
|
||||
#include "sim/probe/probe.hh"
|
||||
#include "sim/sub_system.hh"
|
||||
|
||||
ThermalDomain::ThermalDomain(const Params *p)
|
||||
: SimObject(p), _initTemperature(p->initial_temperature),
|
||||
|
||||
@@ -45,11 +45,11 @@
|
||||
#include "base/statistics.hh"
|
||||
#include "params/ThermalDomain.hh"
|
||||
#include "sim/power/thermal_entity.hh"
|
||||
#include "sim/probe/probe.hh"
|
||||
#include "sim/sim_object.hh"
|
||||
#include "sim/sub_system.hh"
|
||||
|
||||
class SubSystem;
|
||||
class ThermalNode;
|
||||
template <class T> class ProbePointArg;
|
||||
|
||||
/**
|
||||
* A ThermalDomain is used to group objects under that operate under
|
||||
|
||||
@@ -40,8 +40,7 @@
|
||||
#ifndef __SIM_THERMAL_ENTITY_HH__
|
||||
#define __SIM_THERMAL_ENTITY_HH__
|
||||
|
||||
#include "sim/linear_solver.hh"
|
||||
|
||||
class LinearEquation;
|
||||
class ThermalNode;
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "base/statistics.hh"
|
||||
#include "params/ThermalCapacitor.hh"
|
||||
#include "params/ThermalModel.hh"
|
||||
#include "params/ThermalReference.hh"
|
||||
|
||||
Reference in New Issue
Block a user