changeset 7ac58128fbc5 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=7ac58128fbc5
description:
        pwr: Closing power and thermal feedback loop

        This patch makes thermal models use the power figures
        calculated by power models. Since there is a circular
        dependency between power and thermal (and thermal was
        pushed before) this patch closes that loop.

        Change-Id: I8bd5acf6a5026fdbbcfac47e33d27397f24a6f7d
        Reviewed-by: Stephan Diestelhorst <[email protected]>

diffstat:

 src/sim/power/thermal_domain.cc |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 9007a9729815 -r 7ac58128fbc5 src/sim/power/thermal_domain.cc
--- a/src/sim/power/thermal_domain.cc   Mon Jun 06 17:16:44 2016 +0100
+++ b/src/sim/power/thermal_domain.cc   Mon Jun 06 17:16:44 2016 +0100
@@ -110,7 +110,8 @@
 ThermalDomain::getEquation(ThermalNode * tn, unsigned n, double step) const
 {
     LinearEquation eq(n);
+    double power = subsystem->getDynamicPower() + subsystem->getStaticPower();
     if (tn == node)
-        eq[eq.cnt()] = 1.75f; // Fake 1.75 Watts for now, to be changed to PM
+        eq[eq.cnt()] = power;
     return eq;
 }
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to