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 |
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) |
177 perfLevel(_perfLevel); 178} 179 180SrcClockDomain * 181SrcClockDomainParams::create() 182{ 183 return new SrcClockDomain(this); 184} --- 47 unchanged lines hidden --- |