clocked_object.cc (11527:9007a9729815) | clocked_object.cc (11529:f17c012ecfa3) |
---|---|
1/* 2 * Copyright (c) 2015-2016 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 --- 64 unchanged lines hidden (view full) --- 73 _currPwrState = Enums::PwrState(currPwrState); 74} 75 76void 77ClockedObject::pwrState(Enums::PwrState p) 78{ 79 // Function should ideally be called only when there is a state change 80 if (_currPwrState == p) { | 1/* 2 * Copyright (c) 2015-2016 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 --- 64 unchanged lines hidden (view full) --- 73 _currPwrState = Enums::PwrState(currPwrState); 74} 75 76void 77ClockedObject::pwrState(Enums::PwrState p) 78{ 79 // Function should ideally be called only when there is a state change 80 if (_currPwrState == p) { |
81 warn("ClockedObject: Already in the requested power state, request "\ 82 "ignored"); | 81 warn_once("ClockedObject: Already in the requested power state, " \ 82 "request ignored"); |
83 return; 84 } 85 86 // No need to compute stats if in the same tick, update state though. This 87 // can happen in cases like a) during start of the simulation multiple 88 // state changes happens in init/startup phase, b) one takes a decision to 89 // migrate state but decides to reverts back to the original state in the 90 // same tick if other conditions are not met elsewhere. --- 100 unchanged lines hidden --- | 83 return; 84 } 85 86 // No need to compute stats if in the same tick, update state though. This 87 // can happen in cases like a) during start of the simulation multiple 88 // state changes happens in init/startup phase, b) one takes a decision to 89 // migrate state but decides to reverts back to the original state in the 90 // same tick if other conditions are not met elsewhere. --- 100 unchanged lines hidden --- |