thermal_domain.cc (11523:81332eb10367) | thermal_domain.cc (11528:7ac58128fbc5) |
---|---|
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 --- 96 unchanged lines hidden (view full) --- 105 UNSERIALIZE_SCALAR(_initTemperature); 106} 107 108 109LinearEquation 110ThermalDomain::getEquation(ThermalNode * tn, unsigned n, double step) const 111{ 112 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 --- 96 unchanged lines hidden (view full) --- 105 UNSERIALIZE_SCALAR(_initTemperature); 106} 107 108 109LinearEquation 110ThermalDomain::getEquation(ThermalNode * tn, unsigned n, double step) const 111{ 112 LinearEquation eq(n); |
113 double power = subsystem->getDynamicPower() + subsystem->getStaticPower(); |
|
113 if (tn == node) | 114 if (tn == node) |
114 eq[eq.cnt()] = 1.75f; // Fake 1.75 Watts for now, to be changed to PM | 115 eq[eq.cnt()] = power; |
115 return eq; 116} | 116 return eq; 117} |