clock_domain.cc (10249:6bbb7ae309ac) | clock_domain.cc (10395:77b9f96786c1) |
---|---|
1/* 2 * Copyright (c) 2013-2014 ARM Limited 3 * Copyright (c) 2013 Cornell University 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 122 unchanged lines hidden (view full) --- 131 } 132} 133 134void 135SrcClockDomain::perfLevel(PerfLevel perf_level) 136{ 137 assert(validPerfLevel(perf_level)); 138 | 1/* 2 * Copyright (c) 2013-2014 ARM Limited 3 * Copyright (c) 2013 Cornell University 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 122 unchanged lines hidden (view full) --- 131 } 132} 133 134void 135SrcClockDomain::perfLevel(PerfLevel perf_level) 136{ 137 assert(validPerfLevel(perf_level)); 138 |
139 if (perf_level == _perfLevel) { 140 // Silently ignore identical overwrites 141 return; 142 } 143 |
|
139 DPRINTF(ClockDomain, "DVFS: Switching performance level of domain %s "\ 140 "(id: %d) from %d to %d\n", name(), domainID(), _perfLevel, 141 perf_level); 142 143 _perfLevel = perf_level; 144 145 // Signal the voltage domain that we have changed our perf level so that the 146 // voltage domain can recompute its performance level --- 10 unchanged lines hidden (view full) --- 157 ClockDomain::serialize(os); 158} 159 160void 161SrcClockDomain::unserialize(Checkpoint *cp, const std::string §ion) 162{ 163 ClockDomain::unserialize(cp, section); 164 UNSERIALIZE_SCALAR(_perfLevel); | 144 DPRINTF(ClockDomain, "DVFS: Switching performance level of domain %s "\ 145 "(id: %d) from %d to %d\n", name(), domainID(), _perfLevel, 146 perf_level); 147 148 _perfLevel = perf_level; 149 150 // Signal the voltage domain that we have changed our perf level so that the 151 // voltage domain can recompute its performance level --- 10 unchanged lines hidden (view full) --- 162 ClockDomain::serialize(os); 163} 164 165void 166SrcClockDomain::unserialize(Checkpoint *cp, const std::string §ion) 167{ 168 ClockDomain::unserialize(cp, section); 169 UNSERIALIZE_SCALAR(_perfLevel); |
170} 171 172void 173SrcClockDomain::startup() 174{ 175 // Perform proper clock update when all related components have been 176 // created (i.e. after unserialization / object creation) |
|
165 perfLevel(_perfLevel); 166} 167 168SrcClockDomain * 169SrcClockDomainParams::create() 170{ 171 return new SrcClockDomain(this); 172} --- 47 unchanged lines hidden --- | 177 perfLevel(_perfLevel); 178} 179 180SrcClockDomain * 181SrcClockDomainParams::create() 182{ 183 return new SrcClockDomain(this); 184} --- 47 unchanged lines hidden --- |