summaryrefslogtreecommitdiff
path: root/src/sim/sub_system.cc
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2016-04-06 19:43:31 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2016-04-06 19:43:31 +0100
commitbe28d96510e0e722db83b26f1a12d3f5de979b32 (patch)
tree6a7e1807397f002f51fddb34568b89250fca45c8 /src/sim/sub_system.cc
parent8615b27174ae06db4665016c877b1e88031af203 (diff)
downloadgem5-be28d96510e0e722db83b26f1a12d3f5de979b32.tar.xz
Revert power patch sets with unexpected interactions
The following patches had unexpected interactions with the current upstream code and have been reverted for now: e07fd01651f3: power: Add support for power models 831c7f2f9e39: power: Low-power idle power state for idle CPUs 4f749e00b667: power: Add power states to ClockedObject Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> --HG-- extra : amend_source : 0b6fb073c6bbc24be533ec431eb51fbf1b269508
Diffstat (limited to 'src/sim/sub_system.cc')
-rw-r--r--src/sim/sub_system.cc23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/sim/sub_system.cc b/src/sim/sub_system.cc
index f5c0cc3f8..771590cf7 100644
--- a/src/sim/sub_system.cc
+++ b/src/sim/sub_system.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014-2015 ARM Limited
+ * Copyright (c) 2014 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
@@ -37,11 +37,8 @@
* Authors: Geoffrey Blake
*/
-#include "sim/sub_system.hh"
-
#include "params/SubSystem.hh"
#include "sim/sub_system.hh"
-#include "sim/power/power_model.hh"
#include "sim/power/thermal_domain.hh"
SubSystem::SubSystem(const Params *p)
@@ -52,24 +49,6 @@ SubSystem::SubSystem(const Params *p)
p->thermal_domain->setSubSystem(this);
}
-double
-SubSystem::getDynamicPower() const
-{
- double ret = 0.0f;
- for (auto &obj: powerProducers)
- ret += obj->getDynamicPower();
- return ret;
-}
-
-double
-SubSystem::getStaticPower() const
-{
- double ret = 0.0f;
- for (auto &obj: powerProducers)
- ret += obj->getStaticPower();
- return ret;
-}
-
SubSystem *
SubSystemParams::create()
{