dram_ctrl.cc (10890:bac38d2a4acb) dram_ctrl.cc (10910:32f3d1c454ec)
1/*
2 * Copyright (c) 2010-2015 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

--- 2175 unchanged lines hidden (view full) ---

2184 // the only part that is not drained automatically over time
2185 // is the write queue, thus kick things into action if needed
2186 if (!writeQueue.empty() && !nextReqEvent.scheduled()) {
2187 schedule(nextReqEvent, curTick());
2188 }
2189 }
2190
2191 if (count)
1/*
2 * Copyright (c) 2010-2015 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

--- 2175 unchanged lines hidden (view full) ---

2184 // the only part that is not drained automatically over time
2185 // is the write queue, thus kick things into action if needed
2186 if (!writeQueue.empty() && !nextReqEvent.scheduled()) {
2187 schedule(nextReqEvent, curTick());
2188 }
2189 }
2190
2191 if (count)
2192 setDrainState(Drainable::Draining);
2192 setDrainState(DrainState::Draining);
2193 else
2193 else
2194 setDrainState(Drainable::Drained);
2194 setDrainState(DrainState::Drained);
2195 return count;
2196}
2197
2198void
2199DRAMCtrl::drainResume()
2200{
2201 if (!isTimingMode && system()->isTimingMode()) {
2202 // if we switched to timing mode, kick things into action,

--- 60 unchanged lines hidden ---
2195 return count;
2196}
2197
2198void
2199DRAMCtrl::drainResume()
2200{
2201 if (!isTimingMode && system()->isTimingMode()) {
2202 // if we switched to timing mode, kick things into action,

--- 60 unchanged lines hidden ---