dvfs_handler.cc (10905:a6ca6831e775) | dvfs_handler.cc (11321:02e930db812d) |
---|---|
1/* 2 * Copyright (c) 2013-2014 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 --- 49 unchanged lines hidden (view full) --- 58DVFSHandler::DVFSHandler(const Params *p) 59 : SimObject(p), 60 sysClkDomain(p->sys_clk_domain), 61 enableHandler(p->enable), 62 _transLatency(p->transition_latency) 63{ 64 // Check supplied list of domains for sanity and add them to the 65 // domain ID -> domain* hash | 1/* 2 * Copyright (c) 2013-2014 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 --- 49 unchanged lines hidden (view full) --- 58DVFSHandler::DVFSHandler(const Params *p) 59 : SimObject(p), 60 sysClkDomain(p->sys_clk_domain), 61 enableHandler(p->enable), 62 _transLatency(p->transition_latency) 63{ 64 // Check supplied list of domains for sanity and add them to the 65 // domain ID -> domain* hash |
66 for(auto dit = p->domains.begin(); dit != p->domains.end(); ++dit) { | 66 for (auto dit = p->domains.begin(); dit != p->domains.end(); ++dit) { |
67 SrcClockDomain *d = *dit; 68 DomainID domain_id = d->domainID(); 69 70 fatal_if(sysClkDomain == d, "DVFS: Domain config list has a "\ 71 "system clk domain entry"); 72 fatal_if(domain_id == SrcClockDomain::emptyDomainID, 73 "DVFS: Controlled domain %s needs to have a properly "\ 74 " assigned ID.\n", d->name()); --- 123 unchanged lines hidden (view full) --- 198 199void 200DVFSHandler::unserialize(CheckpointIn &cp) 201{ 202 bool temp = enableHandler; 203 204 UNSERIALIZE_SCALAR(enableHandler); 205 | 67 SrcClockDomain *d = *dit; 68 DomainID domain_id = d->domainID(); 69 70 fatal_if(sysClkDomain == d, "DVFS: Domain config list has a "\ 71 "system clk domain entry"); 72 fatal_if(domain_id == SrcClockDomain::emptyDomainID, 73 "DVFS: Controlled domain %s needs to have a properly "\ 74 " assigned ID.\n", d->name()); --- 123 unchanged lines hidden (view full) --- 198 199void 200DVFSHandler::unserialize(CheckpointIn &cp) 201{ 202 bool temp = enableHandler; 203 204 UNSERIALIZE_SCALAR(enableHandler); 205 |
206 if(temp != enableHandler) { | 206 if (temp != enableHandler) { |
207 warn("DVFS: Forcing enable handler status to unserialized value of %d", 208 enableHandler); 209 } 210 211 // Reconstruct the map of domain IDs and their scheduled events 212 std::vector<DomainID> domain_ids; 213 std::vector<PerfLevel> perf_levels; 214 std::vector<Tick> whens; --- 22 unchanged lines hidden --- | 207 warn("DVFS: Forcing enable handler status to unserialized value of %d", 208 enableHandler); 209 } 210 211 // Reconstruct the map of domain IDs and their scheduled events 212 std::vector<DomainID> domain_ids; 213 std::vector<PerfLevel> perf_levels; 214 std::vector<Tick> whens; --- 22 unchanged lines hidden --- |