140a141
> powerGatingOnIdle(p->power_gating_on_idle),
496c497,498
< if (ClockedObject::pwrState() == Enums::PwrState::CLK_GATED) {
---
> if (ClockedObject::pwrState() == Enums::PwrState::CLK_GATED &&
> powerGatingOnIdle) {
539,540c541,546
< //Schedule power gating event when clock gated for a configurable cycles
< schedule(enterPwrGatingEvent, clockEdge(pwrGatingLatency));
---
> // If pwrGatingLatency is set to 0 then this mechanism is disabled
> if (powerGatingOnIdle) {
> // Schedule power gating event when clock gated for pwrGatingLatency
> // cycles
> schedule(enterPwrGatingEvent, clockEdge(pwrGatingLatency));
> }