1/*
2 * Copyright (c) 2012-2013 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

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

114 DPRINTF(TrafficGen,
115 "Traffic generator is only active in timing mode\n");
116 }
117}
118
119unsigned int
120TrafficGen::drain(DrainManager *dm)
121{
122 if (!updateEvent.scheduled()) {
123 // no event has been scheduled yet (e.g. switched from atomic mode)
124 return 0;
125 }
126
127 if (retryPkt == NULL) {
128 // shut things down
129 nextPacketTick = MaxTick;
130 nextTransitionTick = MaxTick;
131 deschedule(updateEvent);
132 return 0;
133 } else {
134 drainManager = dm;

--- 312 unchanged lines hidden ---