thermal_domain.cc (11420:b48c0ba4f524) thermal_domain.cc (11424:e07fd01651f3)
1/*
2 * Copyright (c) 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 94 unchanged lines hidden (view full) ---

103 UNSERIALIZE_SCALAR(_initTemperature);
104}
105
106
107LinearEquation
108ThermalDomain::getEquation(ThermalNode * tn, unsigned n, double step) const
109{
110 LinearEquation eq(n);
1/*
2 * Copyright (c) 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 94 unchanged lines hidden (view full) ---

103 UNSERIALIZE_SCALAR(_initTemperature);
104}
105
106
107LinearEquation
108ThermalDomain::getEquation(ThermalNode * tn, unsigned n, double step) const
109{
110 LinearEquation eq(n);
111 double power = subsystem->getDynamicPower() + subsystem->getStaticPower();
111 if (tn == node)
112 if (tn == node)
112 eq[eq.cnt()] = 1.75f; // Fake 1.75 Watts for now, to be changed to PM
113 eq[eq.cnt()] = power;
113 return eq;
114}
114 return eq;
115}